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
This commit is contained in:
Philipp Oeser 2021-04-13 09:22:57 +02:00
parent 721ff6ad12
commit 30ee57be60
Notes: blender-bot 2023-02-14 02:45:41 +01:00
Referenced by issue #87502, Reducing the area light spread can produce a hard cutoff in the reflection.
Referenced by issue #86456, Motion Tracking Keyframe A & B, relative not absolute.
1 changed files with 2 additions and 0 deletions

View File

@ -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)