From 6996c5617e3e261be23779528a1c21bde1c78b2f Mon Sep 17 00:00:00 2001 From: DarioS Date: Tue, 10 Jan 2023 08:46:19 +0100 Subject: [PATCH] =?UTF-8?q?DataBeam=20:=20-=20piccola=20modifica=20per=20r?= =?UTF-8?q?endere=20pi=C3=B9=20robusti=20i=20calcoli.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/DiceCut.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LuaLibs/DiceCut.lua b/LuaLibs/DiceCut.lua index 32d0a9e..911abb2 100644 --- a/LuaLibs/DiceCut.lua +++ b/LuaLibs/DiceCut.lua @@ -1,4 +1,4 @@ --- DiceCut.lua by Egaltech s.r.l. 2022/02/18 +-- DiceCut.lua by Egaltech s.r.l. 2023/01/09 -- Gestione dei piano paralleli nei tagli lunghi: equidistanziamento dei piani paralleli -- Tabella per definizione modulo @@ -483,9 +483,9 @@ function DiceCut.GetDice( nParent, BBoxRawPart, ptCPlanes, vtNPlanes, bGetOrtoPl end else if vtNInner:getX() > -0.017 then - if vtO:getX() < 0 then vtO = - vtO end + if vtO:getX() < -0.001 then vtO = -vtO end else - if vtO:getX() > 0 then vtO = - vtO end + if vtO:getX() > 0.001 then vtO = -vtO end end end end