Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-11-27 07:14:56 +0300
committerJoshua Leung <aligorith@gmail.com>2009-11-27 07:14:56 +0300
commit54701e28fbd2a2537bc1d9cc8947ca1eaf9c1510 (patch)
treeb9d83a284f6dee0e1bddfe948a010a773b7aaafe /source/blender/editors/include/ED_screen_types.h
parent2cb7a0b25c0c7e2315b764c8a2f43a64fdcee60b (diff)
Animation Playback - Return to original frame
Playback of animation will now be restored to the frame that playback started on when stopping if the SCREEN_OT_animation_cancel operator is used (i.e. ESCKEY). All other ways of stopping playback (pause button, alt-a) should act more like toggles, and do not reset the playhead.
Diffstat (limited to 'source/blender/editors/include/ED_screen_types.h')
-rw-r--r--source/blender/editors/include/ED_screen_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_screen_types.h b/source/blender/editors/include/ED_screen_types.h
index dcdc9e417e4..d933e2cfdaa 100644
--- a/source/blender/editors/include/ED_screen_types.h
+++ b/source/blender/editors/include/ED_screen_types.h
@@ -32,8 +32,9 @@
/* for animplayer */
typedef struct ScreenAnimData {
ARegion *ar; /* do not read from this, only for comparing if region exists */
- int redraws;
- int flag; /* flags for playback */
+ short redraws;
+ short flag; /* flags for playback */
+ int sfra; /* frame that playback was started from */
} ScreenAnimData;
/* for animplayer */