From 24b4d5569ab74a60ca5b9ca94c70df3fac249e05 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 28 Mar 2012 22:43:26 +0000 Subject: [PATCH] fix [#30705] Playing animation in reverse prevents further forward playback --- source/blender/editors/screen/screen_ops.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index d6a74cc19ce..f0dbdf18826 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -3072,6 +3072,8 @@ static int screen_animation_play_exec(bContext *C, wmOperator *op) static void SCREEN_OT_animation_play(wmOperatorType *ot) { + PropertyRNA *prop; + /* identifiers */ ot->name = "Play Animation"; ot->description = "Play animation"; @@ -3082,8 +3084,10 @@ static void SCREEN_OT_animation_play(wmOperatorType *ot) ot->poll = ED_operator_screenactive_norender; - RNA_def_boolean(ot->srna, "reverse", 0, "Play in Reverse", "Animation is played backwards"); - RNA_def_boolean(ot->srna, "sync", 0, "Sync", "Drop frames to maintain framerate"); + prop = RNA_def_boolean(ot->srna, "reverse", 0, "Play in Reverse", "Animation is played backwards"); + RNA_def_property_flag(prop, PROP_SKIP_SAVE); + prop = RNA_def_boolean(ot->srna, "sync", 0, "Sync", "Drop frames to maintain framerate"); + RNA_def_property_flag(prop, PROP_SKIP_SAVE); } static int screen_animation_cancel_exec(bContext *C, wmOperator *op)