Fix #110161: Crash on dragging a Speaker NLA strip #110605

Merged
Sybren A. Stüvel merged 3 commits from guishe/blender:fix-drag-strip into main 2023-08-03 14:19:57 +02:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit 66a4ff8cde - Show all commits

View File

@ -1968,6 +1968,12 @@ static bool nlastrip_validate_transition_start_end(ListBase *strips, NlaStrip *s
if (!(strip->type == NLASTRIP_TYPE_TRANSITION)) {
return true;
}
if (strip->prev) {
strip->start = strip->prev->end;
}
if (strip->next) {
strip->end = strip->next->start;
}
if (strip->start >= strip->end) {
BKE_nlastrip_remove_and_free(strips, strip, true);