Fix crash when Transform Extend multiple NLA strips
`tdn` was being incremented even though it wasn't used, which led to changes in memory outside the HEAP limits.
This commit is contained in:
@@ -621,13 +621,15 @@ static void createTransNlaData(bContext *C, TransInfo *t)
|
||||
if (tdn->handle == 2) {
|
||||
tdn += 2;
|
||||
}
|
||||
else {
|
||||
else if (tdn->handle) {
|
||||
tdn++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BLI_assert(tdn <= (((TransDataNla *)tc->custom.type.data) + tc->data_len));
|
||||
|
||||
/* cleanup temp list */
|
||||
ANIM_animdata_freelist(&anim_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user