summaryrefslogtreecommitdiff
path: root/lib/utils/clamp_path.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2023-02-18 16:48:32 -0500
committerLex Neva <github.com@lexneva.name>2023-02-20 15:27:56 -0500
commit7fa3fec5346a4c87ff1f95dca94cf771455d8cb0 (patch)
tree55db831261796c5d000c08417df4577cc824a44d /lib/utils/clamp_path.py
parentbe699bf89255d98729b1d10f426acf8e852709b4 (diff)
fix deprecation warning
Diffstat (limited to 'lib/utils/clamp_path.py')
-rw-r--r--lib/utils/clamp_path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/clamp_path.py b/lib/utils/clamp_path.py
index acf6f675..e5ef78d8 100644
--- a/lib/utils/clamp_path.py
+++ b/lib/utils/clamp_path.py
@@ -100,7 +100,7 @@ def clamp_path_to_polygon(path, polygon):
if not exit_point.intersects(entry_point):
# Now break the border into pieces using those points.
border = find_border(polygon, exit_point)
- border_pieces = border.difference(MultiPolygon((entry_point, exit_point)))
+ border_pieces = border.difference(MultiPolygon((entry_point, exit_point))).geoms
border_pieces = fix_starting_point(border_pieces)
# Pick the shortest way to get from the exiting to the