mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:29:02 +08:00
Verify that we have a value before using it
Contributes to CURA-446
This commit is contained in:
parent
d23cf97214
commit
dc467b50ce
@ -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…
x
Reference in New Issue
Block a user