BuildVolume no longer crashes when width/height/depth is None

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-05-10 14:34:07 +02:00
parent 67b6c5aa29
commit 5fdd0e8156

View File

@ -71,7 +71,7 @@ class BuildVolume(SceneNode):
## Recalculates the build volume & disallowed areas.
def rebuild(self):
if self._width == 0 or self._height == 0 or self._depth == 0:
if not self._width or not self._height or not self._depth:
return
min_w = -self._width / 2