mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-29 12:20:50 -07: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:
parent
b74335e15e
commit
a83b005f8b
1 changed files with 3 additions and 1 deletions
|
|
@ -1657,7 +1657,9 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
|
|||
|
||||
// Check junction deviation
|
||||
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 "
|
||||
"(machine_max_junction_deviation).\nOrca will "
|
||||
"automatically cap the junction deviation to ensure it doesn't surpass the printer's "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue