From 7c2c057f19ecaea210502cab420aaabb2042a634 Mon Sep 17 00:00:00 2001 From: "xun.zhang" Date: Tue, 1 Aug 2023 15:47:54 +0800 Subject: [PATCH] ENH: restrict the input range of z-hop Signed-off-by: xun.zhang Change-Id: Ieca161bc7a52d6554efca5c0474d2a2fafb2da3c --- src/libslic3r/PrintConfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 31802e9876..d1282b05a6 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -2407,6 +2407,8 @@ void PrintConfigDef::init_fff_params() "Using spiral line to lift z can prevent stringing"); def->sidetext = L("mm"); def->mode = comSimple; + def->min = 0; + def->max = 5; def->set_default_value(new ConfigOptionFloats { 0.4 }); def = this->add("z_hop_types", coEnums);