diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 30dacdb..9578eea 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -971,6 +971,7 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus if bIsCurrentBladeCW then nWorkSide = MCH_MILL_WS.LEFT bInvert = true + dSal, dEal = dEal, dSal else nWorkSide = MCH_MILL_WS.RIGHT bInvert = false @@ -982,14 +983,10 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus else nWorkSide = MCH_MILL_WS.RIGHT bInvert = true + dSal, dEal = dEal, dSal end end - -- imposto eventuale inversione di estensioni e accorciamenti - if bIsCurrentMachiningInverted ~= bInvert then - dSal, dEal = dEal, dSal - end - -- setto la lavorazione con i valori calcolati EgtSetMachiningParam( MCH_MP.INVERT, bInvert) EgtSetMachiningParam( MCH_MP.WORKSIDE, nWorkSide) diff --git a/LuaLibs/ProcessLongDoubleCut.lua b/LuaLibs/ProcessLongDoubleCut.lua index bcd616f..11512af 100644 --- a/LuaLibs/ProcessLongDoubleCut.lua +++ b/LuaLibs/ProcessLongDoubleCut.lua @@ -748,6 +748,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster if bIsCurrentBladeCW then nWorkSide = MCH_MILL_WS.LEFT bInvert = true + dSal, dEal = dEal, dSal else nWorkSide = MCH_MILL_WS.RIGHT bInvert = false @@ -759,14 +760,10 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster else nWorkSide = MCH_MILL_WS.RIGHT bInvert = true + dSal, dEal = dEal, dSal end end - -- imposto eventuale inversione di estensioni e accorciamenti - if bIsCurrentMachiningInverted ~= bInvert then - dSal, dEal = dEal, dSal - end - -- setto la lavorazione con i valori calcolati EgtSetMachiningParam( MCH_MP.INVERT, bInvert) EgtSetMachiningParam( MCH_MP.WORKSIDE, nWorkSide)