Explorar o código

fix: off-by-one error in choosing Spline Index

Joseph Brandenburg hai 6 meses
pai
achega
14c6d730ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      misc_nodes.py

+ 1 - 1
misc_nodes.py

@@ -444,7 +444,7 @@ class UtilityMatrixFromCurveSegment(MantisNode):
             # TODO: Refactor this to make it so I can select spline index
             spline_index = self.evaluate_input("Spline Index")
             spline = curve.data.splines[spline_index]
-            splines_factors = [ [] for i in range (spline_index-1)]
+            splines_factors = [ [] for i in range (spline_index)]
             factors = [0.0]
             points = spline.bezier_points if spline.type == 'BEZIER' else spline.points
             total_length=0.0