Cura/cura/ZOffsetDecorator.py
Simon Edwards 551dc7d757 Fixes for the problem where duplicated objects were broken, missing hull 'shadows' or would fly off the build plate.
Contributes to CURA-1504 Improve performance/simplicity by using Convex Hulls in Scene Graph
2016-06-30 09:35:41 +02:00

15 lines
432 B
Python

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):
self._z_offset = 0
def setZOffset(self, offset):
self._z_offset = offset
def getZOffset(self):
return self._z_offset
def __deepcopy__(self, memo):
return ZOffsetDecorator()