From 4f1c652dc0b815c2f191a65e004b584e227a32b8 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 8 Jun 2023 15:01:18 +0200 Subject: [PATCH] =?UTF-8?q?-=20fix=20minore=20per=20priorit=C3=A0=20da=20b?= =?UTF-8?q?tl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/WallExec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index a75e33f..72c9bfe 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -593,7 +593,7 @@ function InsertScrapRemoval( nPhase) local nActiveMachiningId = EgtGetCurrMachining() while nCurrentOperationId do local bIsCurrentOperationOutline = ( EgtGetInfo( nCurrentOperationId or GDB_ID.NULL, 'ISOUTLINE', 'b' ) == true) - local bIsCurrentOperationWithPriority = ( EgtGetInfo( nCurrentOperationId or GDB_ID.NULL, 'PRIORITY', 'i' ) > 0) + local bIsCurrentOperationWithPriority = ( ( EgtGetInfo( nCurrentOperationId or GDB_ID.NULL, 'PRIORITY', 'i' ) or 0) > 0) local nNextOperationId = EgtGetNextOperation (nCurrentOperationId) local bIsNextOperationOutline = ( EgtGetInfo( nNextOperationId or GDB_ID.NULL, 'ISOUTLINE', 'b' ) == true) if bIsCurrentOperationOutline and bIsCurrentOperationWithPriority and nNextOperationId and not bIsNextOperationOutline then