diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 5a3e17e..f7e53ee 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -2433,7 +2433,7 @@ function BeamExec.ProcessAlternatives( PARTS) if HeadcutInfo then -- offset e vettori vanno adeguati alla rotazione attuale (inversione è già corretta) BeamLib.RotateTableFromIndexInPlace( HeadcutInfo.OffsetX, nRotation) - HeadcutInfo.vtN:rotate( X_AX(), nRotation * 90) + HeadcutInfo.vtN:rotate( X_AX(), ( nRotation - 1) * 90) PARTS[nPart].HeadcutInfo[sBitIndexCombinationWithInvert] = { OffsetX = HeadcutInfo.OffsetX, vtN = HeadcutInfo.vtN @@ -2442,7 +2442,7 @@ function BeamExec.ProcessAlternatives( PARTS) if TailcutInfo then -- offset e vettori vanno adeguati alla rotazione attuale (inversione è già corretta) BeamLib.RotateTableFromIndexInPlace( TailcutInfo.OffsetX, nRotation) - TailcutInfo.vtN:rotate( X_AX(), nRotation * 90) + TailcutInfo.vtN:rotate( X_AX(), ( nRotation - 1) * 90) PARTS[nPart].TailcutInfo[sBitIndexCombinationWithInvert] = { OffsetX = TailcutInfo.OffsetX, vtN = TailcutInfo.vtN