From d4861ee6269d658be42599b6e6d1459fe1dd7561 Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Wed, 27 Jul 2016 20:21:35 +0200 Subject: [PATCH] CURA-1223: Checking whether the bounding box is correct Adds an additional check, like suggested by @awhiemstra. Contributes to CURA-1223 --- plugins/3MFReader/ThreeMFReader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/3MFReader/ThreeMFReader.py b/plugins/3MFReader/ThreeMFReader.py index 71fe8857b1..deb6153ee3 100644 --- a/plugins/3MFReader/ThreeMFReader.py +++ b/plugins/3MFReader/ThreeMFReader.py @@ -124,7 +124,8 @@ class ThreeMFReader(MeshReader): Logger.log("e", "exception occured in 3mf reader: %s", e) try: # Selftest - There might be more functions that should fail - result.getBoundingBox() + boundingBox = result.getBoundingBox() + boundingBox.isValid() except: message = Message(catalog.i18nc("@info:status", "Your 3MF file seems to be broken. Please visit https://modelrepair.azurewebsites.net/ and try to repair your model!"), lifetime = 0) message.show()