Blender Git Loki

Git Commits -> Revision 3e32a68

Revision 3e32a68 by Julian Eisel (master)
October 27, 2021, 16:51 (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: 3e32a68f384d380ea9ce0a0a6fbf47c9ad2a78e4
Parent Commit: bfd2921
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021