From bf3d6c67d9001f02711ca7e7b45a1e848d53eb4e Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 29 Apr 2020 11:59:50 +0200 Subject: [PATCH] Check the bounding box before using it Some objects don't have a bounding box if they are improperly constructed by a plug-in. Fixes Sentry issue CURA-N3. --- plugins/ModelChecker/ModelChecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ModelChecker/ModelChecker.py b/plugins/ModelChecker/ModelChecker.py index 5472a96809..057ee14945 100644 --- a/plugins/ModelChecker/ModelChecker.py +++ b/plugins/ModelChecker/ModelChecker.py @@ -86,7 +86,7 @@ class ModelChecker(QObject, Extension): if material_shrinkage[node_extruder_position] > shrinkage_threshold: bbox = node.getBoundingBox() - if bbox.width >= warning_size_xy or bbox.depth >= warning_size_xy or bbox.height >= warning_size_z: + if bbox is not None and (bbox.width >= warning_size_xy or bbox.depth >= warning_size_xy or bbox.height >= warning_size_z): warning_nodes.append(node) self._caution_message.setText(catalog.i18nc(