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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-04-13 10:22:57 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-04-13 10:49:14 +0300
commit30ee57be60b76b75b6bbf4f780aa670e26502659 (patch)
tree14a0d213960411cfd879d5fff7ef9d1f3cc5f7b8 /source/blender/makesrna/intern/rna_tracking.c
parent721ff6ad12266d5c8cf7406696c948089d17d64e (diff)
Motion Tracking: setting Keyframe A & B was not updating UI indicators
Entering the numbers in the keyframe field was not triggering a viewport update, so the little green lines down in the cache area were only change when the user e.g. changed the frame. Now send appropriate notifiers. Issue spotted in T86456 by sebastian_k. Maniphest Tasks: T86456 Differential Revision: https://developer.blender.org/D10963
Diffstat (limited to 'source/blender/makesrna/intern/rna_tracking.c')
-rw-r--r--source/blender/makesrna/intern/rna_tracking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_tracking.c b/source/blender/makesrna/intern/rna_tracking.c
index c4a44556cf4..c136605c727 100644
--- a/source/blender/makesrna/intern/rna_tracking.c
+++ b/source/blender/makesrna/intern/rna_tracking.c
@@ -2367,6 +2367,7 @@ static void rna_def_trackingObject(BlenderRNA *brna)
RNA_def_property_int_sdna(prop, NULL, "keyframe1");
RNA_def_property_ui_text(
prop, "Keyframe A", "First keyframe used for reconstruction initialization");
+ RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL);
/* keyframe_b */
prop = RNA_def_property(srna, "keyframe_b", PROP_INT, PROP_NONE);
@@ -2374,6 +2375,7 @@ static void rna_def_trackingObject(BlenderRNA *brna)
RNA_def_property_int_sdna(prop, NULL, "keyframe2");
RNA_def_property_ui_text(
prop, "Keyframe B", "Second keyframe used for reconstruction initialization");
+ RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, NULL);
}
static void rna_def_trackingObjects(BlenderRNA *brna, PropertyRNA *cprop)