Fix T92192: Inconsistent curve circle primitive direction
Switch sin and cosine so that the points in the circle have the same direction in both radius and points modes.
This commit is contained in:
parent
1ae79b704a
commit
988b9bc40c
Notes:
blender-bot
2023-02-14 05:22:18 +01:00
Referenced by issue #92192, Geometry Nodes: Curve Circle primitive inconsistent direction
|
@ -132,7 +132,7 @@ static std::unique_ptr<CurveEval> create_point_circle_curve(
|
|||
*/
|
||||
|
||||
const float theta = theta_step * i;
|
||||
positions[i] = center + r * cos(theta) * v1 + r * sin(theta) * v4;
|
||||
positions[i] = center + r * sin(theta) * v1 + r * cos(theta) * v4;
|
||||
}
|
||||
|
||||
spline->radii().fill(1.0f);
|
||||
|
|
Loading…
Reference in New Issue