From bb7f6f87c7f02a02d3093fe0b30dd1d982b62737 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 5 Sep 2016 17:41:52 +0200 Subject: [PATCH] Platfom physics now actually checks max_overlap_checks instead of max_overlap_checks +1 CURA-2156 --- cura/PlatformPhysics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index e25541e91c..d718f25b87 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -105,7 +105,7 @@ class PlatformPhysics: move_vector = move_vector.set(x=overlap[0] * self._move_factor, z=overlap[1] * self._move_factor) current_overlap_checks = 0 # Continue to check the overlap until we no longer find one. - while overlap and current_overlap_checks <= self._max_overlap_checks: + while overlap and current_overlap_checks < self._max_overlap_checks: current_overlap_checks += 1 head_hull = node.callDecoration("getConvexHullHead") if head_hull: # One at a time intersection.