mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Verify that we have a value before using it
Contributes to CURA-446
This commit is contained in:
parent
d23cf97214
commit
dc467b50ce
1 changed files with 2 additions and 1 deletions
|
@ -257,7 +257,8 @@ class BuildVolume(SceneNode):
|
|||
if profile.getSettingValue("draft_shield_enabled"):
|
||||
skirt_size += profile.getSettingValue("draft_shield_dist")
|
||||
|
||||
skirt_size += profile.getSettingValue("xy_offset")
|
||||
if profile.getSettingValue("xy_offset"):
|
||||
skirt_size += profile.getSettingValue("xy_offset")
|
||||
|
||||
return skirt_size
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue