Blender Git Commit Log
Git Commits -> Revision b73993b
Revision b73993b by Julian Eisel (master) November 3, 2021, 14:00 (GMT) |
UI: Refactor how dragging onto text buttons works, fixing issues There was a bunch of special handling to support dropping data-blocks onto string or search-menu buttons, to change the value of these. This refactor makes that case use the normal drop-box design, where an operator is executed on drop that gets input properties set by the drop-box. This should also make it easier to add support for dragging assets into these buttons. In addition this fixes an issue: Two tooltips were shown when dragging assets over text buttons. None should be shown, because this isn't supported. |
Commit Details:
Full Hash: b73993bcc942cafb8ed4a4610d64286505bb4e11
Parent Commit: 0d8f141
Lines Changed: +93, -59
6 Modified Paths:
/source/blender/editors/include/UI_interface.h (+2, -1) (Diff)
/source/blender/editors/interface/interface_dropboxes.cc (+23, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+32, -53) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+34, -0) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+1, -5) (Diff)
/source/blender/editors/interface/interface_dropboxes.cc (+23, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+32, -53) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+34, -0) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+1, -5) (Diff)