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:
zhimin.zeng
2025-07-21 19:51:10 +08:00
committed by Noisyfox
parent 1ccdf7b43b
commit f391070cb7

View File

@@ -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 {};