From 0ece8534db1dd3fde8e6f65a14b3418f26dd5685 Mon Sep 17 00:00:00 2001 From: "xun.zhang" Date: Wed, 15 Nov 2023 16:10:14 +0800 Subject: [PATCH] FIX: scale problem in lift type decide 1. Scale the travel threshhold jira:[NEW] Signed-off-by: xun.zhang Change-Id: Ib594d640fe63b0919bc9318af88577513f7dbf30 --- src/libslic3r/GCode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 853c04c1c..1493e55d1 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -4697,8 +4697,7 @@ bool GCode::needs_retraction(const Polyline &travel, ExtrusionRole role, LiftTyp float max_z_hop = 0.f; for (int i = 0; i < m_config.z_hop.size(); i++) max_z_hop = std::max(max_z_hop, (float)m_config.z_hop.get_at(i)); - float travel_len_thresh = max_z_hop / tan(GCodeWriter::slope_threshold); - + float travel_len_thresh = scale_(max_z_hop / tan(GCodeWriter::slope_threshold)); float accum_len = 0.f; Polyline clipped_travel;