mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-23 19:01:05 -07:00
CURA-4821 Delete also the GCode SceneNode when clearing the buildplate
This commit is contained in:
parent
e2bc14cc58
commit
20ab6265c8
1 changed files with 1 additions and 5 deletions
|
|
@ -1055,7 +1055,7 @@ class CuraApplication(QtApplication):
|
||||||
continue # Node that doesnt have a mesh and is not a group.
|
continue # Node that doesnt have a mesh and is not a group.
|
||||||
if only_selectable and not node.isSelectable():
|
if only_selectable and not node.isSelectable():
|
||||||
continue
|
continue
|
||||||
if not node.callDecoration("isSliceable"):
|
if not node.callDecoration("isSliceable") and not node.callDecoration("getLayerData"):
|
||||||
continue # Only remove nodes that are selectable.
|
continue # Only remove nodes that are selectable.
|
||||||
if node.getParent() and node.getParent().callDecoration("isGroup"):
|
if node.getParent() and node.getParent().callDecoration("isGroup"):
|
||||||
continue # Grouped nodes don't need resetting as their parent (the group) is resetted)
|
continue # Grouped nodes don't need resetting as their parent (the group) is resetted)
|
||||||
|
|
@ -1071,10 +1071,6 @@ class CuraApplication(QtApplication):
|
||||||
|
|
||||||
# Reset the print information:
|
# Reset the print information:
|
||||||
self.getController().getScene().sceneChanged.emit(node)
|
self.getController().getScene().sceneChanged.emit(node)
|
||||||
# self._print_information.setToZeroPrintInformation(self.getBuildPlateModel().activeBuildPlate)
|
|
||||||
|
|
||||||
# stay on the same build plate
|
|
||||||
#self.getCuraSceneController().setActiveBuildPlate(0) # Select first build plate
|
|
||||||
|
|
||||||
## Reset all translation on nodes with mesh data.
|
## Reset all translation on nodes with mesh data.
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue