From 091785a31d4863e268284d19fe88f1c34511f62a Mon Sep 17 00:00:00 2001 From: DarioS Date: Mon, 25 Jul 2022 14:07:00 +0200 Subject: [PATCH] DataBeam : - correzione orientamento braccio in taglio con lama L013 sui fianchi. --- LuaLibs/ProcessSawCut.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LuaLibs/ProcessSawCut.lua b/LuaLibs/ProcessSawCut.lua index 0cb81c4..6e3bab3 100644 --- a/LuaLibs/ProcessSawCut.lua +++ b/LuaLibs/ProcessSawCut.lua @@ -184,6 +184,9 @@ function ProcessSawCut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, dOvmTail) for i = 1, nC do -- Posizione braccio portatesta local nSCC = EgtIf( ( BD.C_SIMM or i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + if abs( vtDir:getY()) > 0.5 then + nSCC = EgtIf( vtDir:getY() > 0, MCH_SCC.ADIR_YP, MCH_SCC.ADIR_YM) + end -- ciclo sulle passate local dOffset = dWidth - dDepth ; local dLioTang = 0