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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-06-01 19:35:38 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-06-01 19:35:38 +0400
commit9da25e016f70f6072c0385543ccf44585126d0fb (patch)
tree999e8c1510df2cf38681cbab8b064e6e80eafbeb
parent16ca0163d8a1ebac2746ebf80bfcf464fc0c8883 (diff)
Fix #22462: selecting the "Animation Step" operator from the spacebar
menu crashes Blender, patch provided by Frederik De Bleser, thanks!
-rw-r--r--source/blender/editors/screen/screen_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index a91e6dddf75..6004820e5c8 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -2393,8 +2393,8 @@ static int match_region_with_redraws(int spacetype, int regiontype, int redraws)
static int screen_animation_step(bContext *C, wmOperator *op, wmEvent *event)
{
bScreen *screen= CTX_wm_screen(C);
-
- if(screen->animtimer==event->customdata) {
+
+ if(screen->animtimer && screen->animtimer==event->customdata) {
Scene *scene= CTX_data_scene(C);
wmTimer *wt= screen->animtimer;
ScreenAnimData *sad= wt->customdata;