Fix #138727: Crash translating a strip without an active strip

Caused by 12f5ce7c85

Simple NULL check to prevent accesing non-existing act_strip

Pull Request: https://projects.blender.org/blender/blender/pulls/138753
This commit is contained in:
Philipp Oeser
2025-05-13 09:13:28 +02:00
committed by Philipp Oeser
parent ca6571383a
commit e951ea250a

View File

@@ -75,7 +75,8 @@ static void store_transform_properties(const Scene *scene,
tdseq->orig_rotation = transform->rotation;
tdseq->orig_flag = strip->flag;
tdseq->orig_mirror = seq::image_transform_mirror_factor_get(strip);
tdseq->active_seq_orig_rotation = ed->act_strip->data->transform->rotation;
tdseq->active_seq_orig_rotation = ed->act_strip ? ed->act_strip->data->transform->rotation :
transform->rotation;
tdseq->strip = strip;
td->extra = static_cast<void *>(tdseq);
}