mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Raise exception when encountering unknown bed adhesion
This fails explicitly when the bed adhesion is unknown, so that any programmer who adds bed adhesion or changes existing bed adhesion enum values will get notified as quickly as possible that this build volume calculation should be updated as well. Contributes to issue CURA-2407.
This commit is contained in:
parent
c4d3fa7fc7
commit
1daa71c0ec
1 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,8 @@ class BuildVolume(SceneNode):
|
|||
|
||||
elif adhesion_type == "raft":
|
||||
border_size = self._getSettingProperty("raft_margin", "value")
|
||||
else:
|
||||
raise Exception("Unknown bed adhesion type. Did you forget to update the build volume calculations for your new bed adhesion type?")
|
||||
|
||||
if self._getSettingProperty("xy_offset", "value"):
|
||||
border_size += self._getSettingProperty("xy_offset", "value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue