Revert "Revert "Merge branch 'master' of https://github.com/QIDITECH/QIDISlicer""

This reverts commit 5bba8ccb1b.
This commit is contained in:
sunsets
2024-01-17 14:38:24 +08:00
parent 5bba8ccb1b
commit bf9dbfae79
12 changed files with 594 additions and 13 deletions

View File

@@ -2862,7 +2862,8 @@ std::string GCodeGenerator::extrude_loop(const ExtrusionLoop &loop_src, const GC
// if polyline was shorter than the clipping distance we'd get a null polyline, so
// we discard it in that case.
if (m_enable_loop_clipping)
clip_end(smooth_path, scaled<double>(EXTRUDER_CONFIG(nozzle_diameter)) * LOOP_CLIPPING_LENGTH_OVER_NOZZLE_DIAMETER, scaled<double>(min_gcode_segment_length));
//Y21
clip_end(smooth_path, scaled<double>(EXTRUDER_CONFIG(nozzle_diameter)) * (m_config.seam_gap.value / 100), scaled<double>(min_gcode_segment_length));
if (smooth_path.empty())
return {};