CURA-4525 party working objects list and build plates

This commit is contained in:
Jack Ha 2017-11-07 14:52:22 +01:00
parent 5050124699
commit 38670171f5
6 changed files with 252 additions and 58 deletions

View file

@ -9,26 +9,9 @@ class BuildPlateDecorator(SceneNodeDecorator):
def setBuildPlateNumber(self, nr):
self._build_plate_number = nr
# self.getNode().childrenChanged.connect(self._onChildrenChanged)
def getBuildPlateNumber(self):
return self._build_plate_number
# def setNode(self, node):
# super().setNode(node)
# self.getNode().childrenChanged.connect(self._onChildrenChanged)
# def _onChildrenChanged(self, node):
# if not self.getNode().hasChildren():
# # A group that no longer has children may remove itself from the scene
# self._old_parent = self.getNode().getParent()
# self.getNode().setParent(None)
# Selection.remove(self.getNode())
# else:
# # A group that has removed itself from the scene because it had no children may add itself back to the scene when a child is added to it
# if not self.getNode().getParent() and self._old_parent:
# self.getNode().setParent(self._old_parent)
# self._old_parent = None
def __deepcopy__(self, memo):
return BuildPlateDecorator()