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.
This commit is contained in:
2010-06-14 15:02:16 +00:00
parent a2461a01c9
commit 08c4725a13

View File

@@ -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);
}
}
}