New Addon: Import Autodesk .max #105013
@ -700,7 +700,7 @@ class torus_knot_plus(Operator, AddObjectHelper):
|
|||||||
print("Approximate average TK length = %.2f" % avgTKLen)
|
print("Approximate average TK length = %.2f" % avgTKLen)
|
||||||
|
|
||||||
# x N factor = control points per unit length
|
# x N factor = control points per unit length
|
||||||
self.torus_res = max(3, avgTKLen / links * 8)
|
self.torus_res = max(3, int(avgTKLen / links) * 8)
|
||||||
|
|
||||||
# update align matrix
|
# update align matrix
|
||||||
self.align_matrix = align_matrix(self, context)
|
self.align_matrix = align_matrix(self, context)
|
||||||
|
Loading…
Reference in New Issue
Block a user