mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 15:27:53 -06:00
BuildVolume no longer crashes when width/height/depth is None
CURA-1278
This commit is contained in:
parent
67b6c5aa29
commit
5fdd0e8156
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue