Added selftest for all objects in 3mf file

CURA-2460
This commit is contained in:
Jaime van Kessel 2016-09-26 13:03:45 +02:00
parent d7cf65258f
commit 3f9024aeff

View file

@ -106,6 +106,11 @@ class ThreeMFReader(MeshReader):
node.setTransformation(temp_mat)
try:
node.getBoundingBox() # Selftest - There might be more functions that should fail
except:
continue
result.addChild(node)
Job.yieldThread()
@ -118,7 +123,6 @@ class ThreeMFReader(MeshReader):
result = result.getChildren()[0] # Only one object found, return that.
except Exception as e:
Logger.log("e", "exception occured in 3mf reader: %s", e)
try: # Selftest - There might be more functions that should fail
bounding_box = result.getBoundingBox()
bounding_box.isValid()