[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29927] trunk/blender/source/blender/ blenkernel/intern/group.c: commenting group timeoffset since it causes groups objects to recalculate modifiers etc .

Campbell Barton ideasman42 at gmail.com
Sun Jul 4 13:56:31 CEST 2010


Revision: 29927
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29927
Author:   campbellbarton
Date:     2010-07-04 13:56:31 +0200 (Sun, 04 Jul 2010)

Log Message:
-----------
commenting group timeoffset since it causes groups objects to recalculate modifiers etc. constantly even when animation isnt playing.

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

Modified: trunk/blender/source/blender/blenkernel/intern/group.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/group.c	2010-07-04 11:41:42 UTC (rev 29926)
+++ trunk/blender/source/blender/blenkernel/intern/group.c	2010-07-04 11:56:31 UTC (rev 29927)
@@ -328,6 +328,11 @@
 {
 	GroupObject *go;
 	
+#if 0 /* warning, isnt clearing the recalc flag on the object which causes it to run all the time,
+	   * not just on frame change.
+	   * This isnt working because the animation data is only re-evalyated on frame change so commenting for now
+	   * but when its enabled at some point it will need to be changed so as not to update so much - campbell */
+
 	/* if animated group... */
 	if(give_timeoffset(parent) != 0.0f || parent->nlastrips.first) {
 		int cfrao;
@@ -353,7 +358,9 @@
 		/* restore */
 		scene->r.cfra= cfrao;
 	}
-	else {
+	else
+#endif
+	{
 		/* only do existing tags, as set by regular depsgraph */
 		for(go= group->gobject.first; go; go= go->next) {
 			if(go->ob) {





More information about the Bf-blender-cvs mailing list