Blender Git Commit Log
Git Commits -> Revision 46d56bd
Revision 46d56bd by Sybren A. Stüvel (master) May 4, 2021, 14:23 (GMT) |
Animation: correct active track/strip pointers after copying NLA tracks After copying NLA tracks from one `AnimData` to another, also ensure that the `AnimData::act_track` and `AnimData::actstrip` pointers are pointing to the copy rather than the original. This is a necessary step to allow library overrides on NLA modifiers without crashing Blender. The remapping of the pointers is done by looping over the tracks/strips and comparing pointers. Alternatively, I could update the copy functions themselves to keep track of those pointers and return them, but IMO that would produce more spaghetti (they're also used in cases where this pointer-remapping is not desired). |
Commit Details:
Full Hash: 46d56bd9567045965a6a46e2b5205020514bbee1
Parent Commit: 191664a
Lines Changed: +58, -3