From 7fa3fec5346a4c87ff1f95dca94cf771455d8cb0 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 18 Feb 2023 16:48:32 -0500 Subject: fix deprecation warning --- lib/utils/clamp_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils/clamp_path.py') 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 -- cgit v1.2.3