mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Fixed bug that caused crash when object was entirely below platform
This commit is contained in:
parent
a63d08288a
commit
ddc34eaa3a
3 changed files with 9 additions and 8 deletions
|
@ -113,8 +113,10 @@ class PlatformPhysics:
|
|||
|
||||
move_vector.setX(overlap[0] * 1.1)
|
||||
move_vector.setZ(overlap[1] * 1.1)
|
||||
convex_hull = node.callDecoration("getConvexHull")
|
||||
convex_hull = node.callDecoration("getConvexHull")
|
||||
if convex_hull:
|
||||
if not convex_hull.isValid():
|
||||
return
|
||||
# Check for collisions between disallowed areas and the object
|
||||
for area in self._build_volume.getDisallowedAreas():
|
||||
overlap = convex_hull.intersectsPolygon(area)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue