Blender Git Loki
Git Commits -> Revision fd78016
Revision fd78016 by Julian Eisel (experimental_gp_weight, greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval, temp-greasepencil-object-stacksplit, temp-greasepencil-vfx) May 15, 2017, 08:42 (GMT) |
UI: Add template_search (version of template_ID for non-IDs) Adds a version of template_ID that can be used for non-ID properties. The property to search for and the collection to search in has to be passed to it. Like template_ID it also takes arguments to define a 'new' and 'unlink' operator. They will be displayed as icon-only buttons then. Also added a version that can display preview thumbnails. Had to do some additional changes to make text-buttons support displaying/modifying empty RNA properties. This will be needed for workspaces, see D2451. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D2666 |
Commit Details:
Full Hash: fd78016ecd088abc8a888325e821b91f3b10d566
Parent Commit: 59aa170
Committed By: Antonio Vazquez
Lines Changed: +518, -192
12 Modified Paths:
/source/blender/editors/include/UI_interface.h (+11, -0) (Diff)
/source/blender/editors/interface/interface.c (+16, -5) (Diff)
/source/blender/editors/interface/interface_handlers.c (+3, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+18, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+12, -90) (Diff)
/source/blender/editors/interface/interface_templates.c (+330, -91) (Diff)
/source/blender/editors/interface/interface_utils.c (+85, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+25, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -2) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+11, -0) (Diff)
/source/blender/editors/interface/interface.c (+16, -5) (Diff)
/source/blender/editors/interface/interface_handlers.c (+3, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+18, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+12, -90) (Diff)
/source/blender/editors/interface/interface_templates.c (+330, -91) (Diff)
/source/blender/editors/interface/interface_utils.c (+85, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+25, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -2) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+11, -0) (Diff)