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:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue