Animation play: Follow feature. Enabled from playback menu in the
[blender-staging.git] / source / blender / makesrna / intern / rna_screen.c
index 7b01acff6a5c03216bd70889d80854548e852fa7..86d20e6e23956b777b11319594b27d0a01149489 100644 (file)
@@ -413,6 +413,11 @@ static void rna_def_screen(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "All 3D View Editors", "");
        RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TIME, "rna_Screen_redraw_update");
 
+       prop = RNA_def_property(srna, "use_follow", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "redraws_flag", TIME_FOLLOW);
+       RNA_def_property_ui_text(prop, "Follow", "Follow current frame in editors that update");
+       RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TIME, "rna_Screen_redraw_update");
+
        prop = RNA_def_property(srna, "use_play_animation_editors", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "redraws_flag", TIME_ALL_ANIM_WIN);
        RNA_def_property_ui_text(prop, "Animation Editors", "");