From 638e20883cdcb4ea38cb10d2f4ec32b569a31846 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 7 May 2025 09:20:16 +0200 Subject: [PATCH] DataDoors : - piccolo riordino del codice. --- LuaLibs/VisionCutOut.lua | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/LuaLibs/VisionCutOut.lua b/LuaLibs/VisionCutOut.lua index e1ee17b..e24ea3f 100644 --- a/LuaLibs/VisionCutOut.lua +++ b/LuaLibs/VisionCutOut.lua @@ -1412,7 +1412,19 @@ function VisionCutOut.Draw( tVisPar, bPreview, bRunByCompo, nDrawMach) EgtErase( hint_ofs) end end - + + if MId then + EgtModifyCurveThickness( MId, -T) + EgtInvertCurve( MId) + + if bl then + EgtSetName( MId, LBM) + EgtSetInfo( MId, 'ByBlade', bl) + else + EgtSetName( MId, LM) + end + end + -- eventuale antischeggia per split (validi se rotazione utensile di split oraria) if split and T2 and LA then local bHoriz = ( dir ~= '0') @@ -1441,17 +1453,6 @@ function VisionCutOut.Draw( tVisPar, bPreview, bRunByCompo, nDrawMach) EgtSetName( As2Id, LA) end - if MId then - EgtModifyCurveThickness( MId, -T) - EgtInvertCurve( MId) - - if bl then - EgtSetName( MId, LBM) - EgtSetInfo( MId, 'ByBlade', bl) - else - EgtSetName( MId, LM) - end - end elseif split == nil then EC = (ErrorBase+5) EM = EgtDoorsMsg[408] -- mancano i parametri delle dimensioni