From 4a99f2bdf624ca03c3edc9e09e067e22de1d4a45 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Wed, 13 May 2026 16:28:04 +0200 Subject: [PATCH] - in BeamExec.GetProcessings per HeadcutInfo e TailcutInfo si usano gli indici di rotazione canonici (1,2,3,4 per std e 5,6,7,8 per invertiti) --- LuaLibs/BeamExec.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 077c296..eff1648 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -1394,6 +1394,7 @@ function BeamExec.GetProcessings( PARTS, bIsFlipRot) -- per ogni rotazione for nRotIndex = 1, 4 do local nOffsetIndex = EgtIf( nInvertIndex == 2, 4, 0) + -- le rotazioni sono 1,2,3,4 (0, 90, 180, 270) e 5,6,7,8 (le stesse invertite) local nIndex = nRotIndex + nOffsetIndex local HeadcutInfo, TailcutInfo -- si calcolano le feature solo se la rotazione può essere presa in considerazione @@ -1408,15 +1409,14 @@ function BeamExec.GetProcessings( PARTS, bIsFlipRot) -- inserisco una tabella vuota table.insert( vProcRot, {}) end - local sRotation = GetRotationName( nRotIndex, nInvertIndex) if HeadcutInfo then - PARTS[nPart].HeadcutInfo[sRotation] = { + PARTS[nPart].HeadcutInfo[nIndex] = { OffsetX = HeadcutInfo.OffsetX, vtN = HeadcutInfo.vtN } end if TailcutInfo then - PARTS[nPart].TailcutInfo[sRotation] = { + PARTS[nPart].TailcutInfo[nIndex] = { OffsetX = TailcutInfo.OffsetX, vtN = TailcutInfo.vtN }