Geometry Nodes: fix direction mode in curve primitive line node
Differential Revision: https://developer.blender.org/D11872
This commit is contained in:
parent
4c716ced09
commit
d7f88982a8
|
@ -95,7 +95,7 @@ static std::unique_ptr<CurveEval> create_direction_line_curve(const float3 start
|
|||
spline->resize(2);
|
||||
MutableSpan<float3> positions = spline->positions();
|
||||
positions[0] = start;
|
||||
positions[1] = direction.normalized() * length;
|
||||
positions[1] = direction.normalized() * length + start;
|
||||
|
||||
spline->radii().fill(1.0f);
|
||||
spline->tilts().fill(0.0f);
|
||||
|
|
Loading…
Reference in New Issue