mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-09 05:39:01 +08:00
13 lines
363 B
Python
13 lines
363 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
|