瀏覽代碼

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