Prevent calculations with brim width larger than build-plate. [CURA-6094]

This commit is contained in:
Remco Burema 2019-01-18 12:54:42 +01:00
parent ccfa6ebb92
commit aae06fe0fa
2 changed files with 15 additions and 4 deletions

View file

@ -1043,6 +1043,12 @@ class BuildVolume(SceneNode):
else:
raise Exception("Unknown bed adhesion type. Did you forget to update the build volume calculations for your new bed adhesion type?")
max_length_available = 0.5 * min(
self._global_container_stack.getProperty("machine_width", "value"),
self._global_container_stack.getProperty("machine_depth", "value")
)
bed_adhesion_size = min(bed_adhesion_size, max_length_available)
support_expansion = 0
support_enabled = self._global_container_stack.getProperty("support_enable", "value")
support_offset = self._global_container_stack.getProperty("support_offset", "value")