D6: Changed decorator and swapping to LayerView

This commit is contained in:
Victor Larchenko 2016-12-13 13:39:09 +06:00 committed by Youness Alaoui
parent 647c2f15ba
commit 67ab0cab41
7 changed files with 50 additions and 41 deletions

View file

@ -1,14 +1,9 @@
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
def isSliceable(self):
return self._sliceable
def setSliceable(self, sliceable):
self._sliceable = sliceable
return True