Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2017-04-12 17:21:03 +0300
committerJaime van Kessel <nallath@gmail.com>2017-04-12 17:21:03 +0300
commitd7e5e5780b2f44bffcdab5c8346f472c48322f8c (patch)
tree2f8af762968c478cb125379fa74abdbc866a9ec9 /cura/BuildVolume.py
parent3e75583f2b37cb08bf7d4c25a144587859ea9865 (diff)
Fixed width & height not being settable to 0
Diffstat (limited to 'cura/BuildVolume.py')
-rwxr-xr-xcura/BuildVolume.py9
1 files 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