Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-11-03 07:35:15 +0300
committerHans Goudey <h.goudey@me.com>2020-11-03 07:35:15 +0300
commit6290bc4a372f6499397fb9c489fee7e9b45c744c (patch)
tree05d3b13dfefea33a83a4500b747e2a5bf8e8a8c5 /source/blender/blenloader/intern/readfile.c
parent23f3c30b5843c69c0eb2f531793a470fadb612e3 (diff)
parentc6d8300823b4e21729450531f2d5a6826ab5a4fa (diff)
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 5d63456cfab..ae640891eab 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2522,7 +2522,9 @@ static void direct_link_ipo(BlendDataReader *reader, Ipo *ipo)
/* Undo generic endian switching. */
if (BLO_read_requires_endian_switch(reader)) {
BLI_endian_switch_int16(&ipo->blocktype);
- BLI_endian_switch_int16(&icu->driver->blocktype);
+ if (icu->driver != NULL) {
+ BLI_endian_switch_int16(&icu->driver->blocktype);
+ }
}
}
}