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
Notes: blender-bot 2023-02-13 22:20:49 +01:00
Referenced by issue #85252, Crash when Interpolating Grease Pencil Sequence in New Scene
1 changed files with 2 additions and 0 deletions

View File

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