diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index a039856..f352374 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -1761,7 +1761,7 @@ local function GetCombinationListFromMatrix( ProcessingsOnPart, Part, bReProcess local dMaxNotClampableLength = 0 for nRotation = 1, 4 do -- si considera solo rotazione attiva - if string.sub( Part.CombinationList[i].sBitIndexCombination, nRotation, nRotation) == '1' then + if string.sub( Part.CombinationList[i].sBitIndexCombination, nRotation, nRotation) == '1' and ( ProcessingsOnPart.Rotation[nRotation+nOffsetIndex][nProc].nFlg > 0) then dMaxNotClampableLengthHead = max( ProcessingsOnPart.Rotation[nRotation+nOffsetIndex][nProc].NotClampableLength.dNotClampableLengthHead, dMaxNotClampableLengthHead) dMaxNotClampableLengthTail = max( ProcessingsOnPart.Rotation[nRotation+nOffsetIndex][nProc].NotClampableLength.dNotClampableLengthTail, dMaxNotClampableLengthTail) end