mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:26:00 +08:00
BuildVolume no longer crashes when width/height/depth is None
CURA-1278
This commit is contained in:
parent
67b6c5aa29
commit
5fdd0e8156
@ -71,7 +71,7 @@ class BuildVolume(SceneNode):
|
|||||||
|
|
||||||
## Recalculates the build volume & disallowed areas.
|
## Recalculates the build volume & disallowed areas.
|
||||||
def rebuild(self):
|
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
|
return
|
||||||
|
|
||||||
min_w = -self._width / 2
|
min_w = -self._width / 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user