From 3b86afb3a1ebcb62bebde4102f0e29d536974161 Mon Sep 17 00:00:00 2001 From: klsruan Date: Fri, 24 May 2024 19:29:23 -0300 Subject: [PATCH] fix default tolerance value --- macros/ILL.EnvelopeDistort.moon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/ILL.EnvelopeDistort.moon b/macros/ILL.EnvelopeDistort.moon index 0ef4085..c3fe817 100644 --- a/macros/ILL.EnvelopeDistort.moon +++ b/macros/ILL.EnvelopeDistort.moon @@ -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" @@ -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} } @@ -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]}} @@ -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