Fix T85252: Gpencil interpolate sequence crash in new scenes

The value of the step was not initializated for new scenes.
This commit is contained in:
Antonio Vazquez
2021-02-01 11:00:50 +01:00
parent 1e55d28a4e
commit 54ac63f06b

View File

@@ -167,6 +167,8 @@ static void scene_init_data(ID *id)
&gp_primitive_curve->clipr, &gp_primitive_curve->clipr,
CURVE_PRESET_BELL, CURVE_PRESET_BELL,
CURVEMAP_SLOPE_POSITIVE); CURVEMAP_SLOPE_POSITIVE);
/* Grease pencil interpolate. */
scene->toolsettings->gp_interpolate.step = 1;
scene->unit.system = USER_UNIT_METRIC; scene->unit.system = USER_UNIT_METRIC;
scene->unit.scale_length = 1.0f; scene->unit.scale_length = 1.0f;