diff options
author | fieldOfView <aldo@fieldofview.com> | 2018-03-16 15:15:24 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2018-03-16 15:15:24 +0300 |
commit | 8e26d27e805ad030a2623f89dcfd6f75451d5211 (patch) | |
tree | e3a45bc094ee26c1ca223ac341bbc7e8358a4c8b /plugins | |
parent | 2a811c62d8c2b3dcb07ab84378a33047a232c092 (diff) |
Fix crash when clicking a non-slicable node
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SupportEraser/SupportEraser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/SupportEraser/SupportEraser.py b/plugins/SupportEraser/SupportEraser.py index 2afb3dfaab..58624ea058 100644 --- a/plugins/SupportEraser/SupportEraser.py +++ b/plugins/SupportEraser/SupportEraser.py @@ -66,6 +66,9 @@ class SupportEraser(Tool): # The selection renderpass is used to identify objects in the current view self._selection_pass = Application.getInstance().getRenderer().getRenderPass("selection") picked_node = self._controller.getScene().findObject(self._selection_pass.getIdAtPosition(event.x, event.y)) + if not picked_node: + # There is no slicable object at the picked location + return node_stack = picked_node.callDecoration("getStack") if node_stack: |