Blender Git Loki

Git Commits -> Revision 80a4695

Revision 80a4695 by Julian Eisel (master)
November 4, 2021, 11:20 (GMT)
Fix T92501: Crash when dragging material assets over 3D View regions

Issue was that the context used for dropbox handling and polling didn't
match the one used for drawing the dropbox and generating the tooltip
text (which would determine the material slot under the cursor,
requiring context). The mismatch would happen with overlapping regions.

Actually, this patch includes two fixes, each fixing the crash itself:
* Store the context from handling & polling and restore it for drawing.
* Correct the hovered region lookup for drawing to account for overlayed
regions.

Note that to properly set up context for drawing, we should also account
for the operator context, which isn't done here, see
https://developer.blender.org/T92501#1247581.

Commit Details:

Full Hash: 80a46955d8212f01b77215ab12d479d934e305f4
Parent Commit: bfb664b
Lines Changed: +116, -46

5 Modified Paths:

/source/blender/editors/include/ED_screen.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_dropboxes.cc (+4, -4) (Diff)
/source/blender/editors/screen/area_query.c (+45, -0) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+44, -33) (Diff)
/source/blender/windowmanager/WM_types.h (+22, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021