From 206278c5885784ab48cc1b4d912dadb449a007ee Mon Sep 17 00:00:00 2001 From: SaraP Date: Fri, 19 Jun 2026 17:09:12 +0200 Subject: [PATCH] 3dPrinting : - nel calcolo delle feed controllo con il valore di feed massima per tutti i valori e non solo per quelli con FEED_COEFF ( ovvero i primi layer dello spiral vase). --- LuaLibs/RunMachParamFromSWCalc.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LuaLibs/RunMachParamFromSWCalc.lua b/LuaLibs/RunMachParamFromSWCalc.lua index 60aafa6..1ac1145 100644 --- a/LuaLibs/RunMachParamFromSWCalc.lua +++ b/LuaLibs/RunMachParamFromSWCalc.lua @@ -228,12 +228,12 @@ function RunMachParamFromSWCalc.Exec() local dCoeff = EgtGetInfo( CurrWidth.IdList[nCurveIdIndex], KEY_FEED_COEFF, 'd') if dCoeff then dNewFeed = dCoeff * CurrFeed - if dNewFeed > dFLimit then - local dNewSpeed = dSpeed * dFLimit / dNewFeed - dNewSpeed = EgtClamp( dNewSpeed, dSMin, dSMax) - dNewFeed = dFLimit - EgtSetInfo( CurrWidth.IdList[nCurveIdIndex], KEY_SPEED, dNewSpeed) - end + end + if dNewFeed > dFLimit then + local dNewSpeed = dSpeed * dFLimit / dNewFeed + dNewSpeed = EgtClamp( dNewSpeed, dSMin, dSMax) + dNewFeed = dFLimit + EgtSetInfo( CurrWidth.IdList[nCurveIdIndex], KEY_SPEED, dNewSpeed) end EgtSetInfo( CurrWidth.IdList[nCurveIdIndex], KEY_FEED, dNewFeed) if dNewFeed > dFeedMax then