Fix T101109: Animation on nodes problems when dealing with Node Groups
Whenever animation on nodes was transfered to/from nodegroups (grouping/ ungrouping/separating) via BKE_animdata_transfer_by_basepath, it was possible to create new nodes with the same name (in the formerly same path -- see report for an example of this) and animation from the original node was still performed on them. Issue went away after save/ reload. In order to fully update the action, a depsgraph is now performed on the action (similar to what is done when renaming for example). Maniphest Tasks: T101109 Differential Revision: https://developer.blender.org/D15987
This commit is contained in:
parent
c350d97a2f
commit
eb54502d9d
Notes:
blender-bot
2023-02-14 08:10:06 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #101109, Blender 3.2.1 - Animation on nodes gets bugged out when dealing with Node Groups (duplicate node names)
|
@ -659,6 +659,8 @@ void BKE_animdata_transfer_by_basepath(Main *bmain, ID *srcID, ID *dstID, ListBa
|
|||
srcAdt, dstAdt, basepath_change->src_basepath, basepath_change->dst_basepath);
|
||||
}
|
||||
}
|
||||
/* Tag source action because list of fcurves changed. */
|
||||
DEG_id_tag_update(&srcAdt->action->id, ID_RECALC_COPY_ON_WRITE);
|
||||
}
|
||||
|
||||
/* Path Validation -------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue