Fix crash when opening a G-code file exported by OrcaSlicer (#16441)

This commit is contained in:
SoftFever authored and GitHub committed 2026-10-14 00:39:09 +08:00
1 parent 7131dd30e7
commit 1591423f91
2 files changed
+75 -1

No files matched your search

+2 -1
View File
@@ -3752,7 +3752,8 @@ DynamicConfig GCodeProcessor::export_config_for_render() const
config.set_key_value("filament_is_support", new ConfigOptionBools(m_parser.get_config().filament_is_support.values));
config.set_key_value("filament_type", new ConfigOptionStrings(m_parser.get_config().filament_type.values));
config.set_key_value("filament_map", new ConfigOptionInts(m_parser.get_config().filament_map.values));
config.apply(m_belt_render_config);
// += clones the options; apply() would need a definition this config does not have.
config += m_belt_render_config;
return config;
}