From 276f8de4f8d16facbaf5e9156a1430d54bb4942e Mon Sep 17 00:00:00 2001 From: DarioS Date: Fri, 30 Sep 2022 01:10:52 +0200 Subject: [PATCH] 3dPrinting : - correzione a calcolo TFS per layer con errori (nome preceduto da __). --- LuaLibs/RunMachParamFromSWCalc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaLibs/RunMachParamFromSWCalc.lua b/LuaLibs/RunMachParamFromSWCalc.lua index d281bd0..bb57aa2 100644 --- a/LuaLibs/RunMachParamFromSWCalc.lua +++ b/LuaLibs/RunMachParamFromSWCalc.lua @@ -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)