mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Fix crash when a profile cannot be loaded, which caused the width & height of the buildvolume to be set to None
This commit is contained in:
parent
3df4d69c37
commit
b3cb24f76a
1 changed files with 3 additions and 3 deletions
|
@ -35,13 +35,13 @@ class BuildVolume(SceneNode):
|
|||
|
||||
|
||||
def setWidth(self, width):
|
||||
self._width = width
|
||||
if width: self._width = width
|
||||
|
||||
def setHeight(self, height):
|
||||
self._height = height
|
||||
if height: self._height = height
|
||||
|
||||
def setDepth(self, depth):
|
||||
self._depth = depth
|
||||
if depth: self._depth = depth
|
||||
|
||||
def getDisallowedAreas(self):
|
||||
return self._disallowed_areas
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue