Geometry Nodes: fix direction mode in curve primitive line node

Differential Revision: https://developer.blender.org/D11872
This commit is contained in:
Johnny Matthews 2021-07-09 18:34:40 +02:00 committed by Jacques Lucke
parent 4c716ced09
commit d7f88982a8
1 changed files with 1 additions and 1 deletions

View File

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