[Bf-blender-cvs] [90bac23] master: Fix T46243: New Depsgraph: changing action misses relations update tag
Sergey Sharybin
noreply at git.blender.org
Wed Jan 20 10:32:52 CET 2016
Commit: 90bac235eaac6c026d552fc46fe26f86c52c8230
Author: Sergey Sharybin
Date: Wed Jan 20 10:30:34 2016 +0100
Branches: master
https://developer.blender.org/rB90bac235eaac6c026d552fc46fe26f86c52c8230
Fix T46243: New Depsgraph: changing action misses relations update tag
===================================================================
M source/blender/makesrna/intern/rna_space.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 82d3310..df5bbe8 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1227,7 +1227,7 @@ static void rna_SpaceDopeSheetEditor_action_set(PointerRNA *ptr, PointerRNA valu
}
}
-static void rna_SpaceDopeSheetEditor_action_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
+static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, Scene *scene, PointerRNA *ptr)
{
SpaceAction *saction = (SpaceAction *)(ptr->data);
Object *obact = (scene->basact) ? scene->basact->object : NULL;
@@ -1297,6 +1297,8 @@ static void rna_SpaceDopeSheetEditor_action_update(Main *UNUSED(bmain), Scene *s
/* force depsgraph flush too */
DAG_id_tag_update(&obact->id, OB_RECALC_OB | OB_RECALC_DATA);
+ /* Update relations as well, so new time source dependency is added. */
+ DAG_relations_tag_update(bmain);
}
}
More information about the Bf-blender-cvs
mailing list