Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2015-09-03 17:38:58 +0300
committerJaime van Kessel <nallath@gmail.com>2015-09-03 17:38:58 +0300
commit6d184ea2810e796e083da0585a4a157c491ac6f3 (patch)
tree40a848fc0b87f867dea50a041ee21f3b84d1dbf7 /cura/PlatformPhysics.py
parent45f213cd82ebdb4f5963a217ac4a391d4dc53810 (diff)
One at a time now has the correct push free behaviour
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r--cura/PlatformPhysics.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py
index c91aaaabde..bf2860d7d6 100644
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -111,7 +111,11 @@ class PlatformPhysics:
# Get the overlap distance for both convex hulls. If this returns None, there is no intersection.
try:
- overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_node.callDecoration("getConvexHull"))
+ head_hull = node.callDecoration("getConvexHullHead")
+ if head_hull:
+ overlap = head_hull.intersectsPolygon(other_node.callDecoration("getConvexHull"))
+ else:
+ overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_node.callDecoration("getConvexHull"))
except:
overlap = None #It can sometimes occur that the caclulated convex hull has no size, in which case there is no overlap.