From 30ee57be60b76b75b6bbf4f780aa670e26502659 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Tue, 13 Apr 2021 09:22:57 +0200 Subject: 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 --- source/blender/makesrna/intern/rna_tracking.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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) -- cgit v1.2.3