Fix crash loading .blend file saved with Blender 2.25

pathJumper.blend from 2.25 release demo files in demos225.zip
This commit is contained in:
Brecht Van Lommel 2020-02-18 18:02:42 +01:00
parent 5df0f8bffb
commit ed8aa154a3
Notes: blender-bot 2023-02-14 00:20:19 +01:00
Referenced by issue #74274, Blender 2.82a proposed revisions
1 changed files with 4 additions and 0 deletions

View File

@ -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];