mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00

Contributes to CURA-1504 Improve performance/simplicity by using Convex Hulls in Scene Graph
15 lines
432 B
Python
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()
|