mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-25 13:36:31 +01:00
Load presets into the new C++ class.
This commit is contained in:
1 parent
b1e3b0cdf9
commit
84d4bf8fdb
6 files changed
+57
-3
No files matched your search
@@ -188,7 +188,8 @@ void ConfigBase::apply(const ConfigBase &other, const t_config_option_keys &keys
|
||||
continue;
|
||||
}
|
||||
// not the most efficient way, but easier than casting pointers to subclasses
|
||||
if (! my_opt->deserialize(other.option(key)->serialize()))
|
||||
const ConfigOption *other_opt = other.option(key);
|
||||
if (other_opt != nullptr && ! my_opt->deserialize(other_opt->serialize()))
|
||||
CONFESS((std::string("Unexpected failure when deserializing serialized value for ") + key).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user