[Bf-blender-cvs] [2d75b39b641] master: Fix T89302: Broken normals after mesh to curve node

Hans Goudey noreply at git.blender.org
Sun Jun 20 20:07:57 CEST 2021


Commit: 2d75b39b6412612f1a5c04b08656d7390ede0ba5
Author: Hans Goudey
Date:   Sun Jun 20 13:07:49 2021 -0500
Branches: master
https://developer.blender.org/rB2d75b39b6412612f1a5c04b08656d7390ede0ba5

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.

===================================================================

M	source/blender/blenkernel/BKE_spline.hh

===================================================================

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;



More information about the Bf-blender-cvs mailing list