Blender Git Loki

Git Commits -> Revision 5bcb0c9

Revision 5bcb0c9 by Julian Eisel (master)
November 25, 2019, 18:50 (GMT)
UI: Allow label for Template-ID (respecting property split layout)

Adds a `text` parameter to `bpy.types.uiLayout.template_ID()` which
causes a label to be added, as usual. Adding the label also makes the
template respect the `bpy.types.uiLayout.use_property_split` option.

Also fixes wrong layout being used in the template-ID, although I think
that didn't cause issues in practice.

Sergey requested this for usage in the Movie Clip Editor.

Commit Details:

Full Hash: 5bcb0c9935033d9d9983838bd4f5ed226627c2e9
Parent Commit: 03cdfc2
Lines Changed: +141, -30

8 Modified Paths:

/source/blender/editors/include/UI_interface.h (+5, -2) (Diff)
/source/blender/editors/interface/interface_layout.c (+35, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+39, -8) (Diff)
/source/blender/editors/space_clip/clip_buttons.c (+10, -2) (Diff)
/source/blender/editors/space_image/image_buttons.c (+2, -1) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+2, -1) (Diff)
/source/blender/editors/space_node/drawnode.c (+20, -15) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+28, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021