From 459eff5610ccb06ea7288b4e8ddcc4d21179c215 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Tue, 23 Sep 2025 12:51:31 +0200 Subject: [PATCH] In Long2Cut, se le due facce sono ortogonali, si predilige lavorazione perpendicolare, con minore elevazione. --- LuaLibs/ProcessLongDoubleCut.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LuaLibs/ProcessLongDoubleCut.lua b/LuaLibs/ProcessLongDoubleCut.lua index a93ac44..e3e6bc7 100644 --- a/LuaLibs/ProcessLongDoubleCut.lua +++ b/LuaLibs/ProcessLongDoubleCut.lua @@ -1280,10 +1280,10 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId, bForcedBladeMaster nFin = 1 else if vtN[vOrd[1]]:getZ() >= vtN[vOrd[2]]:getZ() then - if vtN[vOrd[2]]:getZ() < dLimitAngle then - nFin = 1 - else + if vtN[vOrd[1]]:getZ() < dLimitAngle then nIni = 2 + else + nFin = 1 end else if vtN[vOrd[1]]:getZ() < dLimitAngle then