mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: only detect wrapping area when enable wrapping
jira: none Change-Id: I1353e888624f26679e04a98cc9ac8950b991e77e (cherry picked from commit 53ca132fcdcbec9761b1328f3dc94ab4194e3f07) (cherry picked from commit e8c8a10c97c7eb681f80978106a28716ea5737f8) (cherry picked from commit a28eeef7f4f016689a900d4880e2e8927cea363b)
This commit is contained in:
@@ -970,7 +970,7 @@ static StringObjectException layered_print_cleareance_valid(const Print &print,
|
||||
}*/
|
||||
}
|
||||
|
||||
if (!intersection(wrapping_poly, convex_hull).empty()) {
|
||||
if (print_config.enable_wrapping_detection.value && !intersection(wrapping_poly, convex_hull).empty()) {
|
||||
return {inst->model_instance->get_object()->name + L(" is too close to wrapping detection area, there may be collisions when printing.") + "\n",
|
||||
inst->model_instance->get_object()};
|
||||
}
|
||||
@@ -1024,7 +1024,7 @@ static StringObjectException layered_print_cleareance_valid(const Print &print,
|
||||
}*/
|
||||
return {L("Prime Tower") + L(" is too close to exclusion area, and collisions will be caused.\n")};
|
||||
}
|
||||
if (!intersection({wrapping_poly}, convex_hulls_temp).empty()) {
|
||||
if (print_config.enable_wrapping_detection.value && !intersection({wrapping_poly}, convex_hulls_temp).empty()) {
|
||||
return {L("Prime Tower") + L(" is too close to wrapping detection area, and collisions will be caused.\n")};
|
||||
}
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user