Fix #114216: crash moving "instanced" NLA strips between tracks #114458

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:114216 into blender-v4.0-release 2023-11-03 15:10:42 +01:00
1 changed files with 4 additions and 1 deletions

View File

@ -730,7 +730,10 @@ static void recalcData_nla(TransInfo *t)
delta_y2 = (int(tdn->h2[1]) / NLACHANNEL_STEP(snla) - tdn->signed_track_index);
/* Move strip into track in the requested direction. */
if (delta_y1 || delta_y2) {
/* If we cannot find the strip in the track, this strip has moved tracks already (if multiple
* strips using the same action from equal IDs such as meshes or shapekeys are selected) so can
* be skipped. */
if ((delta_y1 || delta_y2) && BLI_findindex(&tdn->nlt->strips, strip) != -1) {
int delta = (delta_y2) ? delta_y2 : delta_y1;
AnimData *anim_data = BKE_animdata_from_id(tdn->id);