From be79358f0b5ff21c34df3b84a7e7dce71298cd9e Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 7 Jan 2016 17:28:01 +0100 Subject: [PATCH] Fixed scale to max (forgot to substract & add skirt size) CURA-435 --- cura/BuildVolume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 9879a6209b..c7d5962c77 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -152,10 +152,10 @@ class BuildVolume(SceneNode): # As this works better for UM machines, we only add the dissallowed_area_size for the z direction. # This is probably wrong in all other cases. TODO! - # The +2 and -2 is added as there is always a bit of extra room required to work properly. + # The +1 and -1 is added as there is always a bit of extra room required to work properly. scale_to_max_bounds = AxisAlignedBox( - minimum = Vector(min_w + skirt_size + 2, min_h, min_d + disallowed_area_size), - maximum = Vector(max_w - skirt_size - 2, max_h, max_d - disallowed_area_size) + minimum = Vector(min_w + skirt_size + 1, min_h, min_d + disallowed_area_size - skirt_size + 1), + maximum = Vector(max_w - skirt_size - 1, max_h, max_d - disallowed_area_size + skirt_size - 1) ) Application.getInstance().getController().getScene()._maximum_bounds = scale_to_max_bounds