mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
fix build errors
This commit is contained in:
@@ -532,11 +532,6 @@ PresetsConfigSubstitutions PresetBundle::load_presets(AppConfig &config, Forward
|
|||||||
load_user_presets(dir_user_presets, substitution_rule);
|
load_user_presets(dir_user_presets, substitution_rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rewrite renamed compatible_printers / compatible_prints references before selection. Skipped
|
|
||||||
// in validation mode so the profile validator (has_errors -> check_preset_references) sees the
|
|
||||||
// raw vendor-JSON references instead of the silently-repaired ones.
|
|
||||||
if (!validation_mode)
|
|
||||||
this->normalize_compatible_presets();
|
|
||||||
// Rewrite renamed compatible_printers / compatible_prints references before selection. Skipped
|
// Rewrite renamed compatible_printers / compatible_prints references before selection. Skipped
|
||||||
// in validation mode so the profile validator (has_errors -> check_preset_references) sees the
|
// in validation mode so the profile validator (has_errors -> check_preset_references) sees the
|
||||||
// raw vendor-JSON references instead of the silently-repaired ones.
|
// raw vendor-JSON references instead of the silently-repaired ones.
|
||||||
@@ -5533,7 +5528,6 @@ void PresetBundle::set_default_suppressed(bool default_suppressed)
|
|||||||
printers.set_default_suppressed(default_suppressed);
|
printers.set_default_suppressed(default_suppressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PresetBundle::has_errors(bool check_duplicate_filament_subtypes, bool check_references) const
|
|
||||||
bool PresetBundle::has_errors(bool check_duplicate_filament_subtypes, bool check_references) const
|
bool PresetBundle::has_errors(bool check_duplicate_filament_subtypes, bool check_references) const
|
||||||
{
|
{
|
||||||
if (m_errors != 0 || printers.m_errors != 0 || filaments.m_errors != 0 || prints.m_errors != 0)
|
if (m_errors != 0 || printers.m_errors != 0 || filaments.m_errors != 0 || prints.m_errors != 0)
|
||||||
@@ -5560,9 +5554,6 @@ bool PresetBundle::has_errors(bool check_duplicate_filament_subtypes, bool check
|
|||||||
if (check_references && this->check_preset_references())
|
if (check_references && this->check_preset_references())
|
||||||
has_errors = true;
|
has_errors = true;
|
||||||
|
|
||||||
if (check_references && this->check_preset_references())
|
|
||||||
has_errors = true;
|
|
||||||
|
|
||||||
return has_errors;
|
return has_errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user