[Bf-blender-cvs] [740b501d8b6] blender-v3.3-release: Fix T101109: Animation on nodes problems when dealing with Node Groups
Philipp Oeser
noreply at git.blender.org
Fri Sep 30 14:39:55 CEST 2022
Commit: 740b501d8b6ebdb53a0bde79556760513f9492c6
Author: Philipp Oeser
Date: Fri Sep 16 13:04:54 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB740b501d8b6ebdb53a0bde79556760513f9492c6
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
===================================================================
M source/blender/blenkernel/intern/anim_data.c
===================================================================
diff --git a/source/blender/blenkernel/intern/anim_data.c b/source/blender/blenkernel/intern/anim_data.c
index b5b00e031b2..c15cdad4e26 100644
--- a/source/blender/blenkernel/intern/anim_data.c
+++ b/source/blender/blenkernel/intern/anim_data.c
@@ -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 -------------------------------------------- */
More information about the Bf-blender-cvs
mailing list