Fixed 3mf writing

The type hinting changes also changed the way we handle certain imports, which caused saving to fail.

CURA-3215
This commit is contained in:
Jaime van Kessel 2017-03-07 11:01:03 +01:00
parent 8a77dd66fc
commit 414337dead

View file

@ -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():