[Bf-blender-cvs] [14d261d23af] master: Cleanup: Resolve unused variable warning, make function static
Hans Goudey
noreply at git.blender.org
Thu Jan 20 22:11:03 CET 2022
Commit: 14d261d23afe03ae8b6997fbf8e63a63c1e07eff
Author: Hans Goudey
Date: Thu Jan 20 15:10:56 2022 -0600
Branches: master
https://developer.blender.org/rB14d261d23afe03ae8b6997fbf8e63a63c1e07eff
Cleanup: Resolve unused variable warning, make function static
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_curve_primitive_arc.cc
===================================================================
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"),
More information about the Bf-blender-cvs
mailing list