Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2016-09-26 14:03:45 +0300
committerJaime van Kessel <nallath@gmail.com>2016-09-26 14:03:45 +0300
commit3f9024aeff62a36cf24b2744a1fa9dde7196e1f2 (patch)
treed3a19bc1144aa5edf6402008c0aeaf4c9d596dd3 /plugins
parentd7cf65258f6cec6adbb82dc8114407640c92ba5e (diff)
Added selftest for all objects in 3mf file
CURA-2460
Diffstat (limited to 'plugins')
-rw-r--r--plugins/3MFReader/ThreeMFReader.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/3MFReader/ThreeMFReader.py b/plugins/3MFReader/ThreeMFReader.py
index 032a32c61e..ac3c5f474d 100644
--- a/plugins/3MFReader/ThreeMFReader.py
+++ b/plugins/3MFReader/ThreeMFReader.py
@@ -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()