check precise_z_height and enable_prime_tower conflicts in print validate

This commit is contained in:
SoftFever
2026-03-18 16:59:20 +08:00
parent bcd89aba5e
commit 13b08385c8
2 changed files with 13 additions and 3 deletions

View File

@@ -1235,6 +1235,16 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
}
if (m_config.enable_prime_tower) {
for (const PrintObject* object : m_objects) {
if (object->config().precise_z_height.value && warning != nullptr) {
StringObjectException warningtemp;
warningtemp.string = L("Enabling both precise Z height and the prime tower may cause the slicing errors.");
warningtemp.opt_key = "precise_z_height";
warningtemp.is_warning = true;
*warning = warningtemp;
break;
}
}
} else {
if (m_config.enable_wrapping_detection && warning!=nullptr) {
StringObjectException warningtemp;