3mf project files saved with an abstract printer would crash on loading when selecting a non abstract printer to load the project with.

This was because the metadata "is_abstract_machine" was being loaded into the non abstract machine. This caused a crash in MachineListModel.py by trying to delete this non abstract machine from a list where it didn't exist.

The solution is to ignore the "is_abstract_machine" metadata when loading settings from saved machines in 3mf files.

CURA-9711
This commit is contained in:
Joey de l'Arago 2022-10-05 15:27:39 +02:00
parent 6ae88f1181
commit 8e56631972

View File

@ -53,6 +53,7 @@ _ignored_machine_network_metadata = {
"connection_type",
"capabilities",
"octoprint_api_key",
"is_abstract_machine"
} # type: Set[str]