diff options
author | Jack Ha <jackha@gmail.com> | 2017-11-09 19:03:20 +0300 |
---|---|---|
committer | Jack Ha <jackha@gmail.com> | 2017-11-09 19:03:20 +0300 |
commit | e21acd1a07da8bd40031c0039dc5abc831f276ec (patch) | |
tree | 8ca4a870265924ea4392f21059a8cd21ebfc9999 /cura/Scene/BuildPlateDecorator.py | |
parent | 41d5ec86a305d4fc0d5f85e159631d4936032b93 (diff) |
CURA-4525 first multi slice + multi layer data, added filter on build plate, added option arrange on load, visuals like convex hull are now correct
Diffstat (limited to 'cura/Scene/BuildPlateDecorator.py')
-rw-r--r-- | cura/Scene/BuildPlateDecorator.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cura/Scene/BuildPlateDecorator.py b/cura/Scene/BuildPlateDecorator.py index b0a14e41f4..2c886c7444 100644 --- a/cura/Scene/BuildPlateDecorator.py +++ b/cura/Scene/BuildPlateDecorator.py @@ -6,11 +6,14 @@ from UM.Logger import Logger class BuildPlateDecorator(SceneNodeDecorator): def __init__(self, build_plate_number = -1): super().__init__() + self._build_plate_number = None + self._previous_build_plate_number = None self.setBuildPlateNumber(build_plate_number) def setBuildPlateNumber(self, nr): # Make sure that groups are set correctly # setBuildPlateForSelection in CuraActions makes sure that no single childs are set. + self._previous_build_plate_number = self._build_plate_number self._build_plate_number = nr if self._node and self._node.callDecoration("isGroup"): for child in self._node.getChildren(): @@ -19,5 +22,9 @@ class BuildPlateDecorator(SceneNodeDecorator): def getBuildPlateNumber(self): return self._build_plate_number + # Used to determine from what build plate the node moved. + def getPreviousBuildPlateNumber(self): + return self._previous_build_plate_number + def __deepcopy__(self, memo): return BuildPlateDecorator() |