diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-02-18 20:02:42 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-18 20:05:11 +0300 |
commit | ed8aa154a33d1477a399ce165ed08963b441a0de (patch) | |
tree | 1357b8e94b6d2d31abc192304bc6b377b70a7387 /source/blender/blenloader/intern/versioning_280.c | |
parent | 5df0f8bffb55de161b7835baf9e1c3a60ce870d8 (diff) |
Fix crash loading .blend file saved with Blender 2.25
pathJumper.blend from 2.25 release demo files in demos225.zip
Diffstat (limited to 'source/blender/blenloader/intern/versioning_280.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 8baea5c8c4b..a24165713aa 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -891,6 +891,10 @@ static void do_versions_local_collection_bits_set(LayerCollection *layer_collect static void do_version_curvemapping_flag_extend_extrapolate(CurveMapping *cumap) { + if (cumap == NULL) { + return; + } + #define CUMA_EXTEND_EXTRAPOLATE_OLD 1 for (int curve_map_index = 0; curve_map_index < 4; curve_map_index++) { CurveMap *cuma = &cumap->cm[curve_map_index]; |