From dde68ec0e036777208dccfe656d3ff7dd5dfc685 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 14 Dec 2005 18:43:53 +0000 Subject: [PATCH] Orange; added a depsgraph update tag for the case a Group is being animated with NLA, whilst the "NLA target" has no action or nlastrips itself. --- source/blender/blenkernel/intern/depsgraph.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index cdc3bb506c1..090c1c71884 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -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;