Sequencer: Prevent crash when text strip doesn't have effect data.

This commit is contained in:
Sybren A. Stüvel 2017-07-05 20:22:28 +02:00
parent 5e9ad8065a
commit d2f748a222
Notes: blender-bot 2023-02-14 03:03:03 +01:00
Referenced by commit aea4456101, Better fix for sequencer crash when text strip doesn't have effect data.
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
{
if (seq->type == SEQ_TYPE_TEXT) {
TextVars *data = seq->effectdata;
if (data->color[3] == 0.0f) {
if (data != NULL && data->color[3] == 0.0f) {
copy_v4_fl(data->color, 1.0f);
data->shadow_color[3] = 1.0f;
}