mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-06 15:36:32 +02:00
Fixed formatting error in docs for path_cut()
This commit is contained in:
@@ -572,7 +572,7 @@ module path_spread(path, n, spacing, sp=undef, rotate_children=true, closed=fals
|
|||||||
// dists = distances where the path should be cut (a list) or a scalar single distance
|
// dists = distances where the path should be cut (a list) or a scalar single distance
|
||||||
// closed = set to true if the curve is closed. Default: false
|
// closed = set to true if the curve is closed. Default: false
|
||||||
// direction = set to true to return direction vectors. Default: false
|
// direction = set to true to return direction vectors. Default: false
|
||||||
//
|
//
|
||||||
// Example(NORENDER):
|
// Example(NORENDER):
|
||||||
// square=[[0,0],[1,0],[1,1],[0,1]];
|
// square=[[0,0],[1,0],[1,1],[0,1]];
|
||||||
// path_cut(square, [.5,1.5,2.5]); // Returns [[[0.5, 0], 1], [[1, 0.5], 2], [[0.5, 1], 3]]
|
// path_cut(square, [.5,1.5,2.5]); // Returns [[[0.5, 0], 1], [[1, 0.5], 2], [[0.5, 1], 3]]
|
||||||
|
@@ -372,7 +372,8 @@ class LeafNode(object):
|
|||||||
lines, block = get_comment_block(lines, prefix)
|
lines, block = get_comment_block(lines, prefix)
|
||||||
for line in block:
|
for line in block:
|
||||||
if "=" not in line:
|
if "=" not in line:
|
||||||
print("Error: bad argument line:")
|
print("Error in {}: Could not parse line in Argument block. Missing '='.".format(self.name))
|
||||||
|
print("Line read was:")
|
||||||
print(line)
|
print(line)
|
||||||
sys.exit(-2)
|
sys.exit(-2)
|
||||||
argname, argdesc = line.split("=", 1)
|
argname, argdesc = line.split("=", 1)
|
||||||
|
Reference in New Issue
Block a user