ZOffsetDecorator.py 363 B

123456789101112
  1. from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
  2. ## A decorator that stores the amount an object has been moved below the platform.
  3. class ZOffsetDecorator(SceneNodeDecorator):
  4. def __init__(self):
  5. self._z_offset = 0
  6. def setZOffset(self, offset):
  7. self._z_offset = offset
  8. def getZOffset(self):
  9. return self._z_offset