mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Bug fix: Display max_junction_deviation warning dialogue only on marlin printers (#11891)
# Description max_junction_deviation value is only available for marlin2 printers. Update warning dialogue conditions to only display it for Marlin 2 printers. Fixes #11889 # Screenshots/Recordings/Graphs Before:  After: 
This commit is contained in:
committed by
GitHub
parent
b74335e15e
commit
a83b005f8b
@@ -1657,7 +1657,9 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
|
|||||||
|
|
||||||
// Check junction deviation
|
// Check junction deviation
|
||||||
const auto max_junction_deviation = m_config.machine_max_junction_deviation.values[0];
|
const auto max_junction_deviation = m_config.machine_max_junction_deviation.values[0];
|
||||||
if (warning_key.empty() && m_default_object_config.default_junction_deviation.value > max_junction_deviation) {
|
// Orca: Only marlin FW supports max junction deviation. Dont display warning if firmware is not supporting it.
|
||||||
|
const bool support_max_junction_deviation = ( m_config.gcode_flavor == gcfMarlinFirmware);
|
||||||
|
if (warning_key.empty() && m_default_object_config.default_junction_deviation.value > max_junction_deviation && support_max_junction_deviation) {
|
||||||
warning->string = L( "Junction deviation setting exceeds the printer's maximum value "
|
warning->string = L( "Junction deviation setting exceeds the printer's maximum value "
|
||||||
"(machine_max_junction_deviation).\nOrca will "
|
"(machine_max_junction_deviation).\nOrca will "
|
||||||
"automatically cap the junction deviation to ensure it doesn't surpass the printer's "
|
"automatically cap the junction deviation to ensure it doesn't surpass the printer's "
|
||||||
|
|||||||
Reference in New Issue
Block a user