diff options
author | Jacques Lucke <jacques@blender.org> | 2022-01-10 19:25:31 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-01-10 19:25:42 +0300 |
commit | 39ba82f25d1532526fbf5f1be2faa4f327d3a51e (patch) | |
tree | 8a7da21bcc0fab8086d139a419a711a950717738 /source/blender/nodes | |
parent | af6a30ebf1ef2bc337261f8413d1d485b7db46d3 (diff) |
Fix T94111: nurb normal calculation does not work
The normals were computed with an uninitialized tilt.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_input_normal.cc | 1 |
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()); } |