[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51517] trunk/blender/source/blender/ blenkernel/intern/scene.c: fix: drivers on materials and texture don' t update when rendering animation

Andrea Weikert elubie at gmx.net
Mon Oct 22 21:45:16 CEST 2012


Revision: 51517
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51517
Author:   elubie
Date:     2012-10-22 19:45:16 +0000 (Mon, 22 Oct 2012)
Log Message:
-----------
fix: drivers on materials and texture don't update when rendering animation

* Added additional tag_main_idcode in BKE_scene_update_for_newframe similar to what was done previously in BKE_scene_update_tagged to fix #32017 (unlimited recursion issue for material updates) by Joshua Leung
* So issue wasn't the dependencies, but the material was already tagged (from previous drawing), so wouldn't be updated each frame.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/scene.c

Modified: trunk/blender/source/blender/blenkernel/intern/scene.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/scene.c	2012-10-22 19:00:15 UTC (rev 51516)
+++ trunk/blender/source/blender/blenkernel/intern/scene.c	2012-10-22 19:45:16 UTC (rev 51517)
@@ -1117,6 +1117,11 @@
 	BKE_animsys_evaluate_all_animation(bmain, sce, ctime);
 	/*...done with recusrive funcs */
 
+	/* clear "LIB_DOIT" flag from all materials, to prevent infinite recursion problems later 
+	 * when trying to find materials with drivers that need evaluating [#32017] 
+	 */
+	tag_main_idcode(bmain, ID_MA, FALSE);
+
 	/* BKE_object_handle_update() on all objects, groups and sets */
 	scene_update_tagged_recursive(bmain, sce, sce);
 




More information about the Bf-blender-cvs mailing list