From d7e5e5780b2f44bffcdab5c8346f472c48322f8c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 12 Apr 2017 16:21:03 +0200 Subject: [PATCH] Fixed width & height not being settable to 0 --- cura/BuildVolume.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index ab756d133e..8e0e3225fc 100755 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -139,13 +139,16 @@ class BuildVolume(SceneNode): self._updateDisallowedAreasAndRebuild() def setWidth(self, width): - if width: self._width = width + if width is not None: + self._width = width def setHeight(self, height): - if height: self._height = height + if height is not None: + self._height = height def setDepth(self, depth): - if depth: self._depth = depth + if depth is not None: + self._depth = depth def setShape(self, shape): if shape: self._shape = shape