Skip to content

Commit 3b86afb

Browse files
committed
fix default tolerance value
1 parent 57ad389 commit 3b86afb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

macros/ILL.EnvelopeDistort.moon

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export script_name = "Envelope Distort"
22
export script_description = "Allows you to warp and manipulate shapes within a customizable envelope"
3-
export script_version = "1.1.2"
3+
export script_version = "1.1.3"
44
export script_author = "ILLTeam"
55
export script_namespace = "ILL.EnvelopeDistort"
66

@@ -32,7 +32,7 @@ interface = -> {
3232
{class: "label", label: "Columns", x: 0, y: 3}
3333
{class: "intedit", min: 1, x: 1, y: 3, name: "cols", value: 1}
3434
{class: "label", label: "Tolerance", x: 0, y: 4}
35-
{class: "floatedit", min: 0, x: 1, y: 4, name: "tolerance", value: 0}
35+
{class: "floatedit", min: 0, x: 1, y: 4, name: "tolerance", value: 1}
3636
{class: "checkbox", label: "Perspective", x: 0, y: 6, name: "perspective", value: false}
3737
{class: "checkbox", label: "Keep Mesh", x: 1, y: 6, name: "keepMesh", value: false}
3838
}
@@ -68,7 +68,6 @@ makeWithMesh = (sub, sel, activeLine) ->
6868
ass\insertLine l, s
6969
else
7070
{:org} = l.data
71-
isMove = l.tags\existsTag "move"
7271
Line.callBackTags ass, l, (line, j) ->
7372
line.text\callBack (tags, text) ->
7473
line.tags\insert {{"clip", screen .. clips[j]}}
@@ -98,9 +97,10 @@ makeWithMesh = (sub, sel, activeLine) ->
9897
if perspective
9998
path\perspective mesh.path[1], real.path[1]
10099
else
100+
path\closeContours!
101101
path\allCurve!
102102
path\envelopeDistort mesh, real, tolerance
103-
unless maintainMesh
103+
unless keepMesh
104104
line.tags\remove "clip", "iclip"
105105
line.shape = path\move(-x, -y)\export!
106106
ass\insertLine line, s

0 commit comments

Comments
 (0)