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 1c7c1829b6
Pull Request: https://projects.blender.org/blender/blender/pulls/134936
This commit is contained in:
committed by
Christoph Lendenfeld
parent
5cfc7b7c65
commit
981e06f3bd
@@ -1318,7 +1318,7 @@ void BKE_animdata_main_cb(Main *bmain, const FunctionRef<void(ID *, AnimData *)>
|
||||
if (ntp->nodetree) { \
|
||||
AnimData *adt2 = BKE_animdata_from_id((ID *)ntp->nodetree); \
|
||||
if (adt2) { \
|
||||
func(id, adt2); \
|
||||
func((ID *)ntp->nodetree, adt2); \
|
||||
} \
|
||||
} \
|
||||
if (adt) { \
|
||||
|
||||
Reference in New Issue
Block a user