mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
D6: Moved decorator to cura
This commit is contained in:
parent
3605403314
commit
620a3891da
5 changed files with 54 additions and 34 deletions
21
cura/SliceableObjectDecorator.py
Normal file
21
cura/SliceableObjectDecorator.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
|
||||
|
||||
|
||||
## Simple decorator to indicate a scene node is sliceable or not.
|
||||
class SliceableObjectDecorator(SceneNodeDecorator):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._sliceable = True
|
||||
self._block_slicing = False
|
||||
|
||||
def isSliceable(self):
|
||||
return self._sliceable
|
||||
|
||||
def setSliceable(self, sliceable):
|
||||
self._sliceable = sliceable
|
||||
|
||||
def shouldBlockSlicing(self):
|
||||
return self._block_slicing
|
||||
|
||||
def setBlockSlicing(self, block_slicing):
|
||||
self._block_slicing = block_slicing
|
Loading…
Add table
Add a link
Reference in a new issue