Orange; added a depsgraph update tag for the case a Group is being animated
authorTon Roosendaal <ton@blender.org>
Wed, 14 Dec 2005 18:43:53 +0000 (18:43 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 14 Dec 2005 18:43:53 +0000 (18:43 +0000)
with NLA, whilst the "NLA target" has no action or nlastrips itself.

source/blender/blenkernel/intern/depsgraph.c

index cdc3bb506c1e0d0e8fbab8609366537b4f193c77..090c1c718846100121b1001c29b5309ae71dace7 100644 (file)
@@ -1564,7 +1564,14 @@ static void dag_object_time_update_flags(Object *ob)
                        ob->recalc |= OB_RECALC_DATA;
                else if(exists_channel(ob, "Shape"))
                        ob->recalc |= OB_RECALC_DATA;
-               
+               else if(ob->dup_group) {
+                       bActionStrip *strip;
+                       /* this case is for groups with nla, whilst nla target has no action or nla */
+                       for(strip= ob->nlastrips.first; strip; strip= strip->next) {
+                               if(strip->object)
+                                       strip->object->recalc |= OB_RECALC;
+                       }
+               }
        }
        else if(modifiers_isSoftbodyEnabled(ob)) ob->recalc |= OB_RECALC_DATA;
        else if(object_modifiers_use_time(ob)) ob->recalc |= OB_RECALC_DATA;