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
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-01-10 19:25:31 +0300
committerJacques Lucke <jacques@blender.org>2022-01-10 19:25:42 +0300
commit39ba82f25d1532526fbf5f1be2faa4f327d3a51e (patch)
tree8a7da21bcc0fab8086d139a419a711a950717738
parentaf6a30ebf1ef2bc337261f8413d1d485b7db46d3 (diff)
Fix T94111: nurb normal calculation does not work
The normals were computed with an uninitialized tilt.
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_input_normal.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_normal.cc b/source/blender/nodes/geometry/nodes/node_geo_input_normal.cc
index 86c2b0e4543..db5f30fb6c9 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_normal.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_normal.cc
@@ -167,6 +167,7 @@ static void calculate_nurbs_normals(const NURBSpline &spline, MutableSpan<float3
PolySpline poly_spline;
poly_spline.resize(spline.size());
poly_spline.positions().copy_from(spline.positions());
+ poly_spline.tilts().copy_from(spline.tilts());
normals.copy_from(poly_spline.evaluated_normals());
}