Move all decorators in the scene subfolder

This commit is contained in:
ChrisTerBeke 2018-01-03 15:09:19 +01:00
parent 62b06b063b
commit 08322d0a5e
18 changed files with 20 additions and 21 deletions

View file

@ -1,18 +0,0 @@
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
## A decorator that stores the amount an object has been moved below the platform.
class ZOffsetDecorator(SceneNodeDecorator):
def __init__(self):
super().__init__()
self._z_offset = 0
def setZOffset(self, offset):
self._z_offset = offset
def getZOffset(self):
return self._z_offset
def __deepcopy__(self, memo):
copied_decorator = ZOffsetDecorator()
copied_decorator.setZOffset(self.getZOffset())
return copied_decorator