mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 14:19:37 +08:00
13 lines
403 B
Python
13 lines
403 B
Python
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
|
|
|
|
## Simple decorator to indicate a scene node holds layer data.
|
|
class LayerDataDecorator(SceneNodeDecorator):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self._layer_data = None
|
|
|
|
def getLayerData(self):
|
|
return self._layer_data
|
|
|
|
def setLayerData(self, layer_data):
|
|
self._layer_data = layer_data |