Fix T46243: New Depsgraph: changing action misses relations update tag
This commit is contained in:
parent
bf5ddb9728
commit
90bac235ea
Notes:
blender-bot
2023-02-14 08:37:00 +01:00
Referenced by issue #46243, New Depsgraph: Making local a linked group, it doesn't respect an Action till reloading the file or deleting the linked group.
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue