diff options
author | Ghostkeeper <rubend@tutanota.com> | 2020-06-18 15:53:18 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2020-06-18 15:53:18 +0300 |
commit | f8a88642c2258fefd9d5c4be717d64a3b4adbd68 (patch) | |
tree | 0a137efa376ba02d62a9fa55176c30cfc6650159 /cura/Scene | |
parent | 85bfb0222878475a140a041a3b0ad088fd257859 (diff) |
Don't crash when failing to create Toolbox.qml dialogue
Basically we should never be raising the master Exception class, really.
The enclosing class has error handling in case this returns None already, so this fix is easy.
Contributes to Sentry issue CURA-Y5.
Diffstat (limited to 'cura/Scene')
-rw-r--r-- | cura/Scene/CuraSceneNode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cura/Scene/CuraSceneNode.py b/cura/Scene/CuraSceneNode.py index 7337a3a32f..c22277a4b0 100644 --- a/cura/Scene/CuraSceneNode.py +++ b/cura/Scene/CuraSceneNode.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Ultimaker B.V. +# Copyright (c) 2020 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from copy import deepcopy @@ -119,9 +119,9 @@ class CuraSceneNode(SceneNode): self._aabb = None if self._mesh_data: self._aabb = self._mesh_data.getExtents(self.getWorldTransformation()) - else: # If there is no mesh_data, use a boundingbox that encompasses the local (0,0,0) + else: # If there is no mesh_data, use a bounding box that encompasses the local (0,0,0) position = self.getWorldPosition() - self._aabb = AxisAlignedBox(minimum=position, maximum=position) + self._aabb = AxisAlignedBox(minimum = position, maximum = position) for child in self.getAllChildren(): if child.callDecoration("isNonPrintingMesh"): |