diff --git a/LuaLibs/CalcToolPath.lua b/LuaLibs/CalcToolPath.lua index 7712718..fbead3e 100644 --- a/LuaLibs/CalcToolPath.lua +++ b/LuaLibs/CalcToolPath.lua @@ -403,7 +403,9 @@ local function AddRetraction( nCrvId, vtSlicing, dCoastingLen, dWipeLen, dWipeDi for nIdx = 1, nCrvCnt - 2 do EgtAddCurveCompoCurve( nCopyId, nCopyId + nIdx) end - EgtErase( nCopyId + nCrvCnt - 1) + if nCrvCnt > 1 then + EgtErase( nCopyId + nCrvCnt - 1) + end end EgtCloseCurveCompo( nCopyId) EgtChangeClosedCurveStartPoint( nCopyId, ptNewStart, GDB_RT.GLOB) diff --git a/Version.lua b/Version.lua index 747317e..6329aa7 100644 --- a/Version.lua +++ b/Version.lua @@ -1,4 +1,4 @@ --- Version.lua by Egaltech s.r.l. 2024/02/13 +-- Version.lua by Egaltech s.r.l. 2024/05/06 -- Gestione della versione di 3dPrinting -VERSION = '2.6c1' \ No newline at end of file +VERSION = '2.6e1' \ No newline at end of file