FIX: SSDA cause arachne print fail

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ibf75f66db1edaad7cb1b45f999751143442869fc
This commit is contained in:
qing.zhang 2024-08-28 19:43:40 +08:00 committed by Lane.Wei
parent 5bf2448a69
commit 819de9ccad
1 changed files with 3 additions and 1 deletions

View File

@ -4569,8 +4569,10 @@ ExtrusionPaths GCode::merge_same_speed_paths(const ExtrusionPaths &paths)
// 100% overhang speed will not to set smooth speed
if (path.role() == erOverhangPerimeter) {
if (!merge_path.empty())
if (!merge_path.empty()) {
output_paths.push_back(std::move(merge_path));
merge_path.polyline.clear();
}
output_paths.push_back(std::move(path));
merge_start = path_idx + 1;
continue;