Fix T94111: nurb normal calculation does not work

The normals were computed with an uninitialized tilt.
This commit is contained in:
Jacques Lucke 2022-01-10 17:25:31 +01:00
parent af6a30ebf1
commit 39ba82f25d
Notes: blender-bot 2023-02-14 10:21:15 +01:00
Referenced by issue #94111, Align Rotation to Euler bug when toggling Edit Mode -> Object Mode
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}