PROVVISORIO: rotazione rawpart anziché del pezzo. Da correggere non appena sistemata funzione di rotazione pezzo nel grezzo.

This commit is contained in:
andrea.villa
2025-07-11 14:04:32 +02:00
parent 4c5f620117
commit 8585797cc0
+4 -6
View File
@@ -190,12 +190,10 @@ function BeamLib.InvertRawPart( Part, nNumberOfRotations)
return
end
-- si invertono le travi della fase corrente
local nRId = Part.idRaw
while nRId do
EgtRotateRawPart( nRId, Z_AX(), nNumberOfRotations * 90)
nRId = EgtGetNextRawPart( nRId)
end
--TODO è giusto ruotare il pezzo all'interno del grezzo, ma sembra non funzionare correttamente. Appena sistemato, cambiare richiamo funzione con questa commentata
--EgtRotatePartInRawPart( Part.id, Z_AX(), nNumberOfRotations * 90)
EgtRotateRawPart( Part.idRaw, Z_AX(), nNumberOfRotations * 90)
end
-------------------------------------------------------------------------------------------------------------
--- funzione che ruota il grezzo