Skip to content

Commit 9ce37f9

Browse files
committed
remove knot correction for 0 diameter
1 parent c408dbe commit 9ce37f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openglider/lines/knots.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def predict(self, lower_type: LineType, upper_type: LineType, num: int) -> tuple
9191
)
9292

9393
def get(self, lower_type: LineType, upper_type: LineType, upper_num: int) -> list[float]:
94+
if lower_type.thickness == 0:
95+
return [0] * upper_num
96+
9497
key = self._knot_key(lower_type, upper_type, upper_num)
9598

9699
if key not in self.knots_dict:

0 commit comments

Comments
 (0)