mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix crash when clicking a non-slicable node
This commit is contained in:
parent
2a811c62d8
commit
8e26d27e80
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ class SupportEraser(Tool):
|
||||||
# The selection renderpass is used to identify objects in the current view
|
# The selection renderpass is used to identify objects in the current view
|
||||||
self._selection_pass = Application.getInstance().getRenderer().getRenderPass("selection")
|
self._selection_pass = Application.getInstance().getRenderer().getRenderPass("selection")
|
||||||
picked_node = self._controller.getScene().findObject(self._selection_pass.getIdAtPosition(event.x, event.y))
|
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")
|
node_stack = picked_node.callDecoration("getStack")
|
||||||
if node_stack:
|
if node_stack:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue