From 414337dead2b84eac4cd84243ff6f3a997d3d714 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 7 Mar 2017 11:01:03 +0100 Subject: [PATCH] Fixed 3mf writing The type hinting changes also changed the way we handle certain imports, which caused saving to fail. CURA-3215 --- plugins/3MFWriter/ThreeMFWriter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/3MFWriter/ThreeMFWriter.py b/plugins/3MFWriter/ThreeMFWriter.py index 7ce75bf60e..34d47f527b 100644 --- a/plugins/3MFWriter/ThreeMFWriter.py +++ b/plugins/3MFWriter/ThreeMFWriter.py @@ -144,8 +144,7 @@ class ThreeMFWriter(MeshWriter): translation_matrix.setByTranslation(translation_vector) transformation_matrix.preMultiply(translation_matrix) - - root_node = UM.Application.getInstance().getController().getScene().getRoot() + root_node = UM.Application.Application.getInstance().getController().getScene().getRoot() for node in nodes: if node == root_node: for root_child in node.getChildren():