Add cameraVector property to CutawayWorldView
This commit is contained in:
parent
73447bee69
commit
801c122f33
@ -186,6 +186,16 @@ class CutawayWorldView(WorldView):
|
||||
CutawaySliceDownAction(),
|
||||
))
|
||||
|
||||
@property
|
||||
def cameraVector(self):
|
||||
if self.axis == 'x':
|
||||
return Vector(-1, 0, 0)
|
||||
if self.axis == 'y':
|
||||
return Vector(0, -1, 0)
|
||||
if self.axis == 'z':
|
||||
return Vector(0, 0, -1)
|
||||
|
||||
|
||||
def createWorldScene(self):
|
||||
return SlicedWorldScene(self.dimension, self.textureAtlas)
|
||||
|
||||
|
Reference in New Issue
Block a user