[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29449] trunk/blender/source/blender/ windowmanager/intern/wm_event_system.c: workaround for crash when notifiers cause a scene update at the same time rendering starts .

Campbell Barton ideasman42 at gmail.com
Mon Jun 14 17:02:16 CEST 2010


Revision: 29449
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29449
Author:   campbellbarton
Date:     2010-06-14 17:02:16 +0200 (Mon, 14 Jun 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_event_system.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2010-06-14 12:36:28 UTC (rev 29448)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2010-06-14 15:02:16 UTC (rev 29449)
@@ -234,8 +234,15 @@
 			}
 		}
 		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);
+			}
 		}
 	}
 	





More information about the Bf-blender-cvs mailing list