Skip to content

Commit

Permalink
Check ConvexHullHead vs ConvexHullHead collision. CURA-1776
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Ha committed Jul 27, 2016
1 parent 625b2a5 commit 99ec4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cura/PlatformPhysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ def _onChangeTimerFinished(self):
try:
head_hull = node.callDecoration("getConvexHullHead")
if head_hull:
overlap = head_hull.intersectsPolygon(other_node.callDecoration("getConvexHull"))
overlap = head_hull.intersectsPolygon(other_node.callDecoration("getConvexHullHead"))
if not overlap:
other_head_hull = other_node.callDecoration("getConvexHullHead")
if other_head_hull:
overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_head_hull)
overlap = node.callDecoration("getConvexHullHead").intersectsPolygon(other_head_hull)
else:
overlap = node.callDecoration("getConvexHull").intersectsPolygon(other_node.callDecoration("getConvexHull"))
except:
Expand Down

0 comments on commit 99ec4bf

Please sign in to comment.