mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-26 06:34:32 +08:00
Added selftest for all objects in 3mf file
CURA-2460
This commit is contained in:
parent
d7cf65258f
commit
3f9024aeff
@ -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…
x
Reference in New Issue
Block a user