Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/CuraEngine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc.lamboo <casperlamboo@gmail.com>2022-05-05 23:15:57 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-05-05 23:15:57 +0300
commit936ca60974d302a9ca35b352dd0021d3b950993b (patch)
treeab19974e62162ccca26ab6350f980b1219012a33
parent82556f261c7184d437a59b14ab51c25117200ace (diff)
Also add paths when combing fails
CURA-9163
-rw-r--r--src/pathPlanning/Comb.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pathPlanning/Comb.cpp b/src/pathPlanning/Comb.cpp
index ea8de3d8c..fce66cc82 100644
--- a/src/pathPlanning/Comb.cpp
+++ b/src/pathPlanning/Comb.cpp
@@ -241,10 +241,6 @@ bool Comb::calc(const ExtruderTrain& train, Point start_point, Point end_point,
// add combing travel moves if the combing was successful
comb_paths.push_back(tmp_comb_path);
}
- else if (fail_on_unavoidable_obstacles)
- {
- return false;
- }
else
{
// if combing is not possible then move directly to the target destination
@@ -255,6 +251,11 @@ bool Comb::calc(const ExtruderTrain& train, Point start_point, Point end_point,
comb_paths.back().cross_boundary = true;
comb_paths.back().push_back(start_crossing.in_or_mid);
comb_paths.back().push_back(end_crossing.in_or_mid);
+
+ if (fail_on_unavoidable_obstacles)
+ {
+ return false;
+ }
}
}
}