From 2d75b39b6412612f1a5c04b08656d7390ede0ba5 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Sun, 20 Jun 2021 13:07:49 -0500 Subject: Fix T89302: Broken normals after mesh to curve node The normals were broken because the normal calculation mode wasn't set. This patch adds a default normal mode so all code creating a spline does not necessarily have to set it manually. In the future there should be a way to change this value in the node tree. --- source/blender/blenkernel/BKE_spline.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/BKE_spline.hh b/source/blender/blenkernel/BKE_spline.hh index 5e88dd02bdd..f4a27c91e67 100644 --- a/source/blender/blenkernel/BKE_spline.hh +++ b/source/blender/blenkernel/BKE_spline.hh @@ -72,8 +72,7 @@ class Spline { Minimum, Tangent, }; - /* Only #Zup is supported at the moment. */ - NormalCalculationMode normal_mode; + NormalCalculationMode normal_mode = Minimum; blender::bke::CustomDataAttributes attributes; -- cgit v1.2.3