mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fixed width & height not being settable to 0
This commit is contained in:
parent
3e75583f2b
commit
d7e5e5780b
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue