diff options
author | Hans Goudey <h.goudey@me.com> | 2022-01-21 00:10:56 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-21 00:10:56 +0300 |
commit | 14d261d23afe03ae8b6997fbf8e63a63c1e07eff (patch) | |
tree | a76f581f575749fa97d5a006c2d15749938f6d28 /source/blender/nodes | |
parent | 9ca1052226d3eeb9546e6ea90f5ae3f8062e23ba (diff) |
Cleanup: Resolve unused variable warning, make function static
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_primitive_arc.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_arc.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_arc.cc index 5131cb965aa..3f6298168a2 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_arc.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_arc.cc @@ -285,12 +285,12 @@ static std::unique_ptr<CurveEval> create_arc_curve_from_points(const int resolut return curve; } -std::unique_ptr<CurveEval> create_arc_curve_from_radius(const int resolution, - const float radius, - const float start_angle, - const float sweep_angle, - const bool connect_center, - const bool invert_arc) +static std::unique_ptr<CurveEval> create_arc_curve_from_radius(const int resolution, + const float radius, + const float start_angle, + const float sweep_angle, + const bool connect_center, + const bool invert_arc) { std::unique_ptr<CurveEval> curve = std::make_unique<CurveEval>(); std::unique_ptr<PolySpline> spline = std::make_unique<PolySpline>(); @@ -357,7 +357,6 @@ static void node_geo_exec(GeoNodeExecParams params) } case GEO_NODE_CURVE_PRIMITIVE_ARC_TYPE_RADIUS: { std::unique_ptr<CurveEval> curve; - const bool use_circle = false; curve = create_arc_curve_from_radius(std::max(params.extract_input<int>("Resolution"), 2), params.extract_input<float>("Radius"), params.extract_input<float>("Start Angle"), |