Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-11-25 21:41:30 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-11-25 21:50:34 +0300
commit5bcb0c9935033d9d9983838bd4f5ed226627c2e9 (patch)
tree4923d38f4ba23209dc07eab80562dd0bad59c0d5 /source/blender/editors/space_clip/clip_buttons.c
parent03cdfc2ff6df61a247b90c4ad8bb1b26034b4505 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_clip/clip_buttons.c')
-rw-r--r--source/blender/editors/space_clip/clip_buttons.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_buttons.c b/source/blender/editors/space_clip/clip_buttons.c
index 45707d74d2e..34b4967beaf 100644
--- a/source/blender/editors/space_clip/clip_buttons.c
+++ b/source/blender/editors/space_clip/clip_buttons.c
@@ -135,8 +135,16 @@ void uiTemplateMovieClip(
uiLayoutSetContextPointer(layout, "edit_movieclip", &clipptr);
if (!compact) {
- uiTemplateID(
- layout, C, ptr, propname, NULL, "CLIP_OT_open", NULL, UI_TEMPLATE_ID_FILTER_ALL, false);
+ uiTemplateID(layout,
+ C,
+ ptr,
+ propname,
+ NULL,
+ "CLIP_OT_open",
+ NULL,
+ UI_TEMPLATE_ID_FILTER_ALL,
+ false,
+ NULL);
}
if (clip) {