Blender Git Loki
Git Commits -> Revision d60a7a8
Revision d60a7a8 by Jeroen Bakker (master) August 2, 2021, 13:13 (GMT) |
WindowManager: Support Dynamic tooltips when dragging. Originally the operator name was drawn next to the dragging content. After that there was an option to add custom, static text with the dragging content. This patch allows dynamic text to be drawn. The custom text was implemented as out parameter of the poll function what made the code unclear. This patch introduces a tooltip function that separates tooltip generation from the poll function. NOTE: the text should always be returned in its own memory block. This block will be freed after it is copied in the drag struct. Reviewed By: Severin Differential Revision: https://developer.blender.org/D12104 |
Commit Details:
Full Hash: d60a7a87445c140a42b6470ef2c54c411d8e4bf3
Parent Commit: 8edb222
Lines Changed: +223, -247
16 Modified Paths:
/source/blender/editors/include/UI_interface.h (+1, -4) (Diff)
/source/blender/editors/interface/interface_ops.c (+1, -4) (Diff)
/source/blender/editors/screen/screen_ops.c (+4, -6) (Diff)
/source/blender/editors/space_clip/space_clip.c (+2, -5) (Diff)
/source/blender/editors/space_console/space_console.c (+4, -10) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -5) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -5) (Diff)
/source/blender/editors/space_node/space_node.c (+18, -28) (Diff)
/source/blender/editors/space_outliner/outliner_dragdrop.c (+80, -66) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+9, -15) (Diff)
/source/blender/editors/space_text/space_text.c (+4, -10) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+33, -44) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+46, -36) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+1, -2) (Diff)
/source/blender/windowmanager/WM_api.h (+4, -3) (Diff)
/source/blender/windowmanager/WM_types.h (+12, -4) (Diff)
/source/blender/editors/interface/interface_ops.c (+1, -4) (Diff)
/source/blender/editors/screen/screen_ops.c (+4, -6) (Diff)
/source/blender/editors/space_clip/space_clip.c (+2, -5) (Diff)
/source/blender/editors/space_console/space_console.c (+4, -10) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -5) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -5) (Diff)
/source/blender/editors/space_node/space_node.c (+18, -28) (Diff)
/source/blender/editors/space_outliner/outliner_dragdrop.c (+80, -66) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+9, -15) (Diff)
/source/blender/editors/space_text/space_text.c (+4, -10) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+33, -44) (Diff)
/source/blender/windowmanager/intern/wm_dragdrop.c (+46, -36) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+1, -2) (Diff)
/source/blender/windowmanager/WM_api.h (+4, -3) (Diff)
/source/blender/windowmanager/WM_types.h (+12, -4) (Diff)