Commit: 39ba82f25d1532526fbf5f1be2faa4f327d3a51e Author: Jacques Lucke Date: Mon Jan 10 17:25:31 2022 +0100 Branches: master https://developer.blender.org/rB39ba82f25d1532526fbf5f1be2faa4f327d3a51e
Fix T94111: nurb normal calculation does not work The normals were computed with an uninitialized tilt. =================================================================== M source/blender/nodes/geometry/nodes/node_geo_input_normal.cc =================================================================== 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()); } _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
