From 78a7299fc59b8b665e49d370512442c02c2efadb Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Fri, 16 Mar 2018 14:38:56 +0100 Subject: [PATCH] Maintain a selection when removing a mesh, so the tool stays active --- plugins/SupportEraser/SupportEraser.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/SupportEraser/SupportEraser.py b/plugins/SupportEraser/SupportEraser.py index 22dd9b6d9c..8f89d212d0 100644 --- a/plugins/SupportEraser/SupportEraser.py +++ b/plugins/SupportEraser/SupportEraser.py @@ -126,9 +126,16 @@ class SupportEraser(Tool): Application.getInstance().getController().getScene().sceneChanged.emit(node) def _removeEraserMesh(self, node: CuraSceneNode): + parent = node.getParent() + if parent == self._controller.getScene().getRoot(): + parent = None + op = RemoveSceneNodeOperation(node) op.push() + if parent and not Selection.isSelected(parent): + Selection.add(parent) + Application.getInstance().getController().getScene().sceneChanged.emit(node) def _updateEnabled(self):