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 }