Переглянути джерело

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

Joseph Brandenburg 6 місяців тому
батько
коміт
14c6d730ba
1 змінених файлів з 1 додано та 1 видалено
  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