Sequencer: Prevent crash when text strip doesn't have effect data.
authorSybren A. Stüvel <sybren@stuvel.eu>
Wed, 5 Jul 2017 18:22:28 +0000 (20:22 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Wed, 5 Jul 2017 18:22:28 +0000 (20:22 +0200)
source/blender/blenloader/intern/versioning_270.c

index d2f43a2d79e89e3871342416532403fb3a7a7470..87ccfedcff3830ed84daf205fad8d5e6a4d7c694 100644 (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;
                                        }