Blender Git Loki

Git Commits -> Revision c20c203

Revision c20c203 by Julian Eisel (master)
May 11, 2017, 23:47 (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: c20c203b82260c06888c2a535c08ec383923ee8a
Parent Commit: c8ab7d4
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021