Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2021-02-01 13:00:50 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-02-01 13:00:50 +0300
commit54ac63f06b59517fca43860e465f4779432dc7a3 (patch)
tree040f59eb3b541e983a1cab445700b70d8e676c33 /source
parent1e55d28a4e244cd501d9b53f56d535a04ce5eef1 (diff)
Fix T85252: Gpencil interpolate sequence crash in new scenes
The value of the step was not initializated for new scenes.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/scene.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index 8f2dca30ad9..b19b0e684b2 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -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;