[Bf-blender-cvs] [38c199ab3ef] soc-2021-curve-fillet: Removed redundant code in curve fillet node

dilithjay noreply at git.blender.org
Tue Aug 3 16:42:26 CEST 2021


Commit: 38c199ab3ef3b4249b53b7661f5cbd842d5e3555
Author: dilithjay
Date:   Tue Aug 3 20:11:55 2021 +0530
Branches: soc-2021-curve-fillet
https://developer.blender.org/rB38c199ab3ef3b4249b53b7661f5cbd842d5e3555

Removed redundant code in curve fillet node

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
index db57c3533dd..e6522953734 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc
@@ -610,23 +610,11 @@ static std::unique_ptr<CurveEval> fillet_curve(const CurveEval &input_curve,
     spline_indices[i] = spline_indices[i - 1] + input_splines[i]->size();
   }
 
-  if (mode_param.radius_mode == GEO_NODE_CURVE_FILLET_RADIUS_ATTRIBUTE) {
-    threading::parallel_for(input_splines.index_range(), 128, [&](IndexRange range) {
-      for (const int i : range) {
-        const Spline &spline = *input_splines[i];
-        std::string radii_name = mode_param.radii_dist.value();
-        GVArray_Typed<float> radii_dist = spline.attributes.get_for_read<float>(radii_name, 1.0f);
-        output_splines[i] = fillet_spline(spline, mode_param, spline_indices[i]);
-      }
-    });
-  }
-  else {
-    threading::parallel_for(input_splines.index_range(), 128, [&](IndexRange range) {
-      for (const int i : range) {
-        output_splines[i] = fillet_spline(*input_splines[i], mode_param, spline_indices[i]);
-      }
-    });
-  }
+  threading::parallel_for(input_splines.index_range(), 128, [&](IndexRange range) {
+    for (const int i : range) {
+      output_splines[i] = fillet_spline(*input_splines[i], mode_param, spline_indices[i]);
+    }
+  });
 
   return output_curve;
 }



More information about the Bf-blender-cvs mailing list