Page MenuHome

Fix T73049: drag&drop on panels in 3d view behaves unexpectedly
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Mar 4 2020, 4:17 PM.

Details

Summary

Previously, the poll functions of the dropboxes in the 3D viewport would return
true, even if the mouse is actually hovering an overlapping region.

This patch just adds a check for whether the mouse is actually over the main region
and not over an overlapping region.

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Mar 9 2020, 7:38 PM
Brecht Van Lommel (brecht) added inline comments.
source/blender/editors/space_view3d/space_view3d.c
443–447

Can we make this a bit more generic?

Loop over regions in ScrArea, then check if they are overlapping with ED_region_is_overlap.

Ideally this can then also be implemented in wm_dragdrop.c so it works for all editors that might have overlapping regions, which includes the image editor.

This revision now requires changes to proceed.Mar 9 2020, 7:38 PM
  • Use more generic solution and fix the same issue in image editor
This revision is now accepted and ready to land.Mar 12 2020, 5:26 PM