mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-29 21:07:11 +00:00
Fix: Missing inherited filaments on vendor profiles cannot found on OrcaFilamentLibrary (#12060)
* init * ix: resolve OFL filament inherits in printer creation via base_bundle --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -2216,8 +2216,13 @@ bool CreatePrinterPresetDialog::load_system_and_user_presets_with_curr_model(Pre
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
temp_preset_bundle.load_vendor_configs_from_json(preset_path, selected_vendor_id, PresetBundle::LoadConfigBundleAttribute::LoadSystem,
|
// Pass the app's preset bundle (which already holds OrcaFilamentLibrary) as the base
|
||||||
ForwardCompatibilitySubstitutionRule::EnableSilent);
|
// bundle so vendor filaments that inherit OFL bases resolve via the existing
|
||||||
|
// cross-vendor inheritance path.
|
||||||
|
temp_preset_bundle.load_vendor_configs_from_json(preset_path, selected_vendor_id,
|
||||||
|
PresetBundle::LoadConfigBundleAttribute::LoadSystem,
|
||||||
|
ForwardCompatibilitySubstitutionRule::EnableSilent,
|
||||||
|
wxGetApp().preset_bundle);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "load vendor fonfigs form json failed";
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "load vendor fonfigs form json failed";
|
||||||
MessageDialog dlg(this, _L("The printer model was not found, please reselect."), wxString(SLIC3R_APP_FULL_NAME) + " - " + _L("Info"),
|
MessageDialog dlg(this, _L("The printer model was not found, please reselect."), wxString(SLIC3R_APP_FULL_NAME) + " - " + _L("Info"),
|
||||||
|
|||||||
Reference in New Issue
Block a user