From 8e566319725e4232bb8f7ccbbe10d2c655aa136d Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Wed, 5 Oct 2022 15:27:39 +0200 Subject: [PATCH] 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 --- plugins/3MFReader/ThreeMFWorkspaceReader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/3MFReader/ThreeMFWorkspaceReader.py b/plugins/3MFReader/ThreeMFWorkspaceReader.py index 86be2f0380..bec50b5660 100755 --- a/plugins/3MFReader/ThreeMFWorkspaceReader.py +++ b/plugins/3MFReader/ThreeMFWorkspaceReader.py @@ -53,6 +53,7 @@ _ignored_machine_network_metadata = { "connection_type", "capabilities", "octoprint_api_key", + "is_abstract_machine" } # type: Set[str]