mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 06:19:03 +08:00
Maintain a selection when removing a mesh, so the tool stays active
This commit is contained in:
parent
83168886d6
commit
78a7299fc5
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user