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:
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r--source/blender/editors/interface/interface_templates.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 7f01d4f031d..ea45337ddb3 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -2198,6 +2198,17 @@ static void list_item_row(bContext *C, uiLayout *layout, PointerRNA *ptr, Pointe
}
uiDefButR(block, OPTION, 0, "", 0, 0, UI_UNIT_X, UI_UNIT_Y, itemptr, "is_active", i, 0, 0, 0, 0, NULL);
}
+ else if(itemptr->type == &RNA_MovieTrackingObject) {
+ MovieTrackingObject *tracking_object= (MovieTrackingObject*)itemptr->data;
+
+ split= uiLayoutSplit(sub, 0.75f, 0);
+ if(tracking_object->flag&TRACKING_OBJECT_CAMERA) {
+ uiItemL(split, name, ICON_CAMERA_DATA);
+ }
+ else {
+ uiItemL(split, name, ICON_OBJECT_DATA);
+ }
+ }
/* There is a last chance to display custom controls (in addition to the name/label):
* If the given item property group features a string property named as prop_list,