Cleanup: fix compiler warning

This commit is contained in:
Brecht Van Lommel 2022-03-08 12:29:57 +01:00
parent 6f8e65cd7a
commit 178f4fa71e
Notes: blender-bot 2023-02-14 08:33:26 +01:00
Referenced by issue #96242, CRASH: conecting spline length to resample curve
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ static void node_geo_exec(GeoNodeExecParams params)
const GeometryNodeCurvePrimitiveCircleMode mode = (GeometryNodeCurvePrimitiveCircleMode)
storage.mode;
Curves *curves;
Curves *curves = nullptr;
if (mode == GEO_NODE_CURVE_PRIMITIVE_CIRCLE_TYPE_POINTS) {
float3 center_point;
curves = create_point_circle_curve(params.extract_input<float3>("Point 1"),