From 981e06f3bd2b12d790f8610a52398e1ad861a345 Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Fri, 21 Feb 2025 16:46:14 +0100 Subject: [PATCH] Fix #134758: renaming a node breaks animation The issue was that in the macro used, the wrong ID was passed into the rename function. Since nodetrees are a separate embedded ID, the rename function couldn't resolve the RNA path and thus failed. This broke keys and drivers when renaming nodes. Not only for the compositor, but all node trees. This was caused by 1c7c1829b68ba1997e4b39b9950c515eae4bbee3 Pull Request: https://projects.blender.org/blender/blender/pulls/134936 --- source/blender/blenkernel/intern/anim_data.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/anim_data.cc b/source/blender/blenkernel/intern/anim_data.cc index fb1052bba08..f9d299230eb 100644 --- a/source/blender/blenkernel/intern/anim_data.cc +++ b/source/blender/blenkernel/intern/anim_data.cc @@ -1318,7 +1318,7 @@ void BKE_animdata_main_cb(Main *bmain, const FunctionRef if (ntp->nodetree) { \ AnimData *adt2 = BKE_animdata_from_id((ID *)ntp->nodetree); \ if (adt2) { \ - func(id, adt2); \ + func((ID *)ntp->nodetree, adt2); \ } \ } \ if (adt) { \