Blender Git Commit Log
Git Commits -> Revision 17a67bf
Revision 17a67bf by Jacques Lucke (master) June 30, 2021, 15:46 (GMT) |
UI: custom free function improvements This changes `UI_but_func_tooltip_set` so that it allows passing a custom free function, which has two benefits: * The caller can pass `null` to indicate that the value should not be freed. * Arbitrary c++ data can be passed to the callback (before the struct had to be trivially destructible). I added `uiFreeArgFunc` and used it in other places where appropriate. Differential Revision: https://developer.blender.org/D11738 |
Commit Details:
Full Hash: 17a67bf778b87d0d24adfac3bd89bc8d3300c741
Parent Commit: ca12d70
Lines Changed: +33, -30
9 Modified Paths:
/source/blender/editors/include/UI_interface.h (+6, -5) (Diff)
/source/blender/editors/interface/interface.c (+12, -10) (Diff)
/source/blender/editors/interface/interface_handlers.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+5, -4) (Diff)
/source/blender/editors/interface/interface_region_menu_popup.c (+2, -5) (Diff)
/source/blender/editors/interface/interface_region_popup.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+2, -2) (Diff)
/source/blender/editors/space_file/file_draw.c (+3, -1) (Diff)
/source/blender/editors/space_node/node_draw.cc (+1, -1) (Diff)
/source/blender/editors/interface/interface.c (+12, -10) (Diff)
/source/blender/editors/interface/interface_handlers.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+5, -4) (Diff)
/source/blender/editors/interface/interface_region_menu_popup.c (+2, -5) (Diff)
/source/blender/editors/interface/interface_region_popup.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+2, -2) (Diff)
/source/blender/editors/space_file/file_draw.c (+3, -1) (Diff)
/source/blender/editors/space_node/node_draw.cc (+1, -1) (Diff)