Browse Source

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

Joseph Brandenburg 6 tháng trước cách đây
mục cha
commit
14c6d730ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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