diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-05-04 17:19:51 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-05-04 17:23:57 +0300 |
commit | 46d56bd9567045965a6a46e2b5205020514bbee1 (patch) | |
tree | 40197c0053179a1a906360c70b57df848956e0d7 /extern/glew-es | |
parent | 191664acd2c0e2e0c8ff1f92e56db5e68d6c2ca3 (diff) |
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).
Diffstat (limited to 'extern/glew-es')
0 files changed, 0 insertions, 0 deletions