mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:28:59 +08: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
@ -35,13 +35,13 @@ class BuildVolume(SceneNode):
|
|||||||
|
|
||||||
|
|
||||||
def setWidth(self, width):
|
def setWidth(self, width):
|
||||||
self._width = width
|
if width: self._width = width
|
||||||
|
|
||||||
def setHeight(self, height):
|
def setHeight(self, height):
|
||||||
self._height = height
|
if height: self._height = height
|
||||||
|
|
||||||
def setDepth(self, depth):
|
def setDepth(self, depth):
|
||||||
self._depth = depth
|
if depth: self._depth = depth
|
||||||
|
|
||||||
def getDisallowedAreas(self):
|
def getDisallowedAreas(self):
|
||||||
return self._disallowed_areas
|
return self._disallowed_areas
|
||||||
|
Loading…
x
Reference in New Issue
Block a user