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:
authorfieldOfView <aldo@fieldofview.com>2018-03-16 15:15:24 +0300
committerfieldOfView <aldo@fieldofview.com>2018-03-16 15:15:24 +0300
commit8e26d27e805ad030a2623f89dcfd6f75451d5211 (patch)
treee3a45bc094ee26c1ca223ac341bbc7e8358a4c8b /plugins/SupportEraser
parent2a811c62d8c2b3dcb07ab84378a33047a232c092 (diff)
Fix crash when clicking a non-slicable node
Diffstat (limited to 'plugins/SupportEraser')
-rw-r--r--plugins/SupportEraser/SupportEraser.py3
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: