avoid error message when stopping animation playback.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 2 Apr 2010 08:51:48 +0000 (08:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 2 Apr 2010 08:51:48 +0000 (08:51 +0000)
source/blender/editors/screen/screen_ops.c

index f071295..e5fecce 100644 (file)
@@ -2601,9 +2601,9 @@ static int screen_animation_cancel(bContext *C, wmOperator *op, wmEvent *event)
                WM_event_add_notifier(C, NC_SCENE|ND_FRAME, scene);
                
                /* call the other "toggling" operator to clean up now */
-               return screen_animation_play_invoke(C, op, event);
+               ED_screen_animation_play(C, 0, 0);
        }
-       
+
        return OPERATOR_PASS_THROUGH;
 }