mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 15:27:53 -06:00
Merge pull request #310 from fieldOfView/fix_buildvolume_brokenprofile
Fix crash when a profile cannot be loaded
This commit is contained in:
commit
476533b416
1 changed files with 3 additions and 3 deletions
|
@ -39,13 +39,13 @@ class BuildVolume(SceneNode):
|
||||||
self._onActiveInstanceChanged()
|
self._onActiveInstanceChanged()
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue