diff options
author | Hans Goudey <h.goudey@me.com> | 2021-06-20 21:07:49 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-20 21:07:49 +0300 |
commit | 2d75b39b6412612f1a5c04b08656d7390ede0ba5 (patch) | |
tree | 6232011952ec1bc3bb07fc4c96bfc7497463a90d /source/blender/blenkernel | |
parent | eee3529eaf444cc0db0ad46182dccab46907c361 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_spline.hh | 3 |
1 files changed, 1 insertions, 2 deletions
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; |