mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Added selftest for all objects in 3mf file
CURA-2460
This commit is contained in:
parent
d7cf65258f
commit
3f9024aeff
1 changed files with 5 additions and 1 deletions
|
@ -106,6 +106,11 @@ class ThreeMFReader(MeshReader):
|
||||||
|
|
||||||
node.setTransformation(temp_mat)
|
node.setTransformation(temp_mat)
|
||||||
|
|
||||||
|
try:
|
||||||
|
node.getBoundingBox() # Selftest - There might be more functions that should fail
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
|
||||||
result.addChild(node)
|
result.addChild(node)
|
||||||
|
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
|
@ -118,7 +123,6 @@ class ThreeMFReader(MeshReader):
|
||||||
result = result.getChildren()[0] # Only one object found, return that.
|
result = result.getChildren()[0] # Only one object found, return that.
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.log("e", "exception occured in 3mf reader: %s", e)
|
Logger.log("e", "exception occured in 3mf reader: %s", e)
|
||||||
|
|
||||||
try: # Selftest - There might be more functions that should fail
|
try: # Selftest - There might be more functions that should fail
|
||||||
bounding_box = result.getBoundingBox()
|
bounding_box = result.getBoundingBox()
|
||||||
bounding_box.isValid()
|
bounding_box.isValid()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue