Fixed reloading meshes for 3mf

CURA-1622
This commit is contained in:
Jaime van Kessel 2016-07-20 13:05:45 +02:00
parent 612bb39680
commit 6ec69d523b
2 changed files with 7 additions and 1 deletions

View file

@ -111,6 +111,8 @@ class ThreeMFReader(MeshReader):
if len(objects) > 1:
group_decorator = GroupDecorator()
result.addDecorator(group_decorator)
elif len(objects) == 1:
result = result.getChildren()[0] # Only one object found, return that.
except Exception as e:
Logger.log("e", "exception occured in 3mf reader: %s", e)