Skip to content

Commit

Permalink
fix default tolerance value
Browse files Browse the repository at this point in the history
  • Loading branch information
klsruan committed May 24, 2024
1 parent 57ad389 commit 3b86afb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros/ILL.EnvelopeDistort.moon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export script_name = "Envelope Distort"
export script_description = "Allows you to warp and manipulate shapes within a customizable envelope"
export script_version = "1.1.2"
export script_version = "1.1.3"
export script_author = "ILLTeam"
export script_namespace = "ILL.EnvelopeDistort"

Expand Down Expand Up @@ -32,7 +32,7 @@ interface = -> {
{class: "label", label: "Columns", x: 0, y: 3}
{class: "intedit", min: 1, x: 1, y: 3, name: "cols", value: 1}
{class: "label", label: "Tolerance", x: 0, y: 4}
{class: "floatedit", min: 0, x: 1, y: 4, name: "tolerance", value: 0}
{class: "floatedit", min: 0, x: 1, y: 4, name: "tolerance", value: 1}
{class: "checkbox", label: "Perspective", x: 0, y: 6, name: "perspective", value: false}
{class: "checkbox", label: "Keep Mesh", x: 1, y: 6, name: "keepMesh", value: false}
}
Expand Down Expand Up @@ -68,7 +68,6 @@ makeWithMesh = (sub, sel, activeLine) ->
ass\insertLine l, s
else
{:org} = l.data
isMove = l.tags\existsTag "move"
Line.callBackTags ass, l, (line, j) ->
line.text\callBack (tags, text) ->
line.tags\insert {{"clip", screen .. clips[j]}}
Expand Down Expand Up @@ -98,9 +97,10 @@ makeWithMesh = (sub, sel, activeLine) ->
if perspective
path\perspective mesh.path[1], real.path[1]
else
path\closeContours!
path\allCurve!
path\envelopeDistort mesh, real, tolerance
unless maintainMesh
unless keepMesh
line.tags\remove "clip", "iclip"
line.shape = path\move(-x, -y)\export!
ass\insertLine line, s
Expand Down

0 comments on commit 3b86afb

Please sign in to comment.