Fix T94111: nurb normal calculation does not work
The normals were computed with an uninitialized tilt.
This commit is contained in:
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
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue