- correzioni a DEFAULT_RAW_NO_EXTRA_WIDTH

This commit is contained in:
luca.mazzoleni
2024-06-27 15:50:24 +02:00
parent e56074f662
commit 4531434e79
+8 -6
View File
@@ -281,12 +281,6 @@ if bToProcess then
for i = 1, #vWall do
local PosX = EgtGetInfo( vWall[i].Id, 'POSX', 'd')
local PosZ = EgtGetInfo( vWall[i].Id, 'POSZ', 'd')
if bProj and WD.DEFAULT_RAW_NO_EXTRA_WIDTH and i == 1 then
PosX = 0
PosZ = 0
dRawL = vWall[i].Box:getDimX()
dRawW = vWall[i].Box:getDimY()
end
vWall[i].PosX = PosX + min( dExtraL, 1200)
if WD.USE_POSY then
local PosY = EgtGetInfo( vWall[i].Id, 'POSY', 'd')
@@ -374,6 +368,14 @@ if bToProcess then
PostErrView( WALL.ERR, WALL.MSG)
return
end
-- se impostato flag apposito, in vista il grezzo è uguale al pezzo
if bProj and WD.DEFAULT_RAW_NO_EXTRA_WIDTH and i == 1 then
PosX = 0
PosZ = 0
dRawL = vWall[1].Box:getDimX()
dRawW = vWall[1].Box:getDimY()
end
-- Verifico dimensioni massime grezzo
if dRawL > WD.MAX_LENGTH + 10 * GEO.EPS_SMALL or dRawW > WD.MAX_WIDTH + 10 * GEO.EPS_SMALL or dRawH > WD.MAX_HEIGHT + 10 * GEO.EPS_SMALL then