From ea40658bd359c2e998c8b051ba7d761563adaf98 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Mon, 21 Nov 2022 12:41:38 +0100 Subject: [PATCH] BugFix/Ticket#802: - piccolo fix per dovetail in doppio --- LuaLibs/BeamExec.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index a1732f6..d003a51 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -1432,18 +1432,17 @@ local function FindMirrorFeature( vProc, Proc, sFeatureType, dHBeam) -- se mortasa a coda di rondine if sFeatureType == 'DtMortise' then Proc.Side = EgtGetInfo( Proc.Id, 'SIDE', 'i') - if Proc.Side == 1 or Proc.Side == 3 then for i = 1, #vProc do local ProcMirror = vProc[i] if DtMortise.SideIdentify(ProcMirror) then ProcMirror.Side = EgtGetInfo( ProcMirror.Id, 'SIDE', 'i') - if ( Proc.Side == 1 and ProcMirror.Side == 3) or ( Proc.Side == 3 and ProcMirror.Side == 1) then + if ( Proc.Side == 1 and ProcMirror.Side == 3) or ( Proc.Side == 3 and ProcMirror.Side == 1) or + ( Proc.Side == 2 and ProcMirror.Side == 4) or ( Proc.Side == 4 and ProcMirror.Side == 2) then local bIsMirror = CheckMirrorDtMortise( Proc, ProcMirror, dHBeam) if bIsMirror then nProcMirror = i end end end end - end end -- se foratura (da implementare) return nProcMirror