diff options
author | j.delarago <joeydelarago@gmail.com> | 2022-06-24 16:00:42 +0300 |
---|---|---|
committer | j.delarago <joeydelarago@gmail.com> | 2022-06-24 16:00:42 +0300 |
commit | 41cc78af1a0687523ec6ecadddea9da1e7120fe5 (patch) | |
tree | 939c091f4f10586a85fff4e28194165d13c14ebe /cura | |
parent | aeb7f33c620ebebaca1d2d8e61899bbdd09db2da (diff) |
Add at a minumum a very small border around the edges of the build plate. Otherwise models with shrinkage compensation (or any model with disallowed areas around it) can be placed so that the output model is off the build plate.CURA-9271
CURA-9271
Diffstat (limited to 'cura')
-rwxr-xr-x | cura/BuildVolume.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 95674763c5..776d92a1f6 100755 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -983,6 +983,9 @@ class BuildVolume(SceneNode): half_machine_width = self._global_container_stack.getProperty("machine_width", "value") / 2 half_machine_depth = self._global_container_stack.getProperty("machine_depth", "value") / 2 + # We need at a minimum a very small border around the edge so that models can't go off the build plate + border_size = max(border_size, 0.1) + if self._shape != "elliptic": if border_size - left_unreachable_border > 0: result[extruder_id].append(Polygon(numpy.array([ |