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

This commit is contained in:
Campbell Barton
2010-07-04 11:56:31 +00:00
parent 8aa0f9b033
commit f9933b2fee

View File

@@ -328,6 +328,11 @@ void group_handle_recalc_and_update(Scene *scene, Object *parent, Group *group)
{
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 @@ void group_handle_recalc_and_update(Scene *scene, Object *parent, Group *group)
/* 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) {