diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-14 19:02:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-14 19:02:16 +0400 |
commit | 08c4725a1376343ece67cfcb3f990416cc8dd108 (patch) | |
tree | 2f631991ffad7575c435e86cdf1346d55afaa086 /source/blender | |
parent | a2461a01c91f70d5a9c1551d19d784f8ad17fff8 (diff) |
workaround for crash when notifiers cause a scene update at the same time rendering starts.
happens when changing frame and pressing render quickly on a slow scene.
for now ignore animation updates while rendering.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 15852941ca6..70e804758b2 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -234,8 +234,15 @@ void wm_event_do_notifiers(bContext *C) } } if(do_anim) { - /* depsgraph gets called, might send more notifiers */ - ED_update_for_newframe(C, 1); + + /* XXX, quick frame changes can cause a crash if framechange and rendering + * collide (happens on slow scenes), scene_update_for_newframe can be called + * twice which can depgraph update the same object at once */ + if(!G.rendering) { + + /* depsgraph gets called, might send more notifiers */ + ED_update_for_newframe(C, 1); + } } } |