3dPrinting :

- correzione a calcolo TFS per layer con errori (nome preceduto da __).
This commit is contained in:
DarioS
2022-09-30 01:10:52 +02:00
parent d1fb754cda
commit 276f8de4f8
+2 -2
View File
@@ -62,7 +62,7 @@ function RunMachParamFromSWCalc.Exec()
local nLayerQty = EgtGetInfo( nLastLayerId, KEY_SLICE_NBR, 'i')
-- ciclo sui layer
local nLayerIndex = 1
local nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex)
local nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex) or EgtGetFirstNameInGroup( nPartId, "__" .. SLICE_LAYER .. nLayerIndex)
while nLayerId do
-- rimuovo eventuale info precedente del tempo di attesa
EgtRemoveInfo( nLayerId, KEY_WAITING_TIME)
@@ -172,7 +172,7 @@ function RunMachParamFromSWCalc.Exec()
-- aggiorno interfaccia
EgtProcessEvents( 400 + ( nLayerIndex / nLayerQty * 100), 0)
nLayerIndex = nLayerIndex + 1
nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex)
nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex) or EgtGetFirstNameInGroup( nPartId, "__" .. SLICE_LAYER .. nLayerIndex)
end
if nMaxIndex < nLayerIndex then nMaxIndex = nLayerIndex end
nPartId = EgtGetNextPart( nPartId)