Fix crash when a profile cannot be loaded, which caused the width & height of the buildvolume to be set to None

This commit is contained in:
fieldOfView 2015-09-01 15:03:22 +02:00
parent 3df4d69c37
commit b3cb24f76a

View file

@ -35,13 +35,13 @@ class BuildVolume(SceneNode):
def setWidth(self, width):
self._width = width
if width: self._width = width
def setHeight(self, height):
self._height = height
if height: self._height = height
def setDepth(self, depth):
self._depth = depth
if depth: self._depth = depth
def getDisallowedAreas(self):
return self._disallowed_areas