Skip to content

Commit

Permalink
check for empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Sep 3, 2018
1 parent e4ada03 commit 8c83dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trimesh/path/polygons.py
Expand Up @@ -85,7 +85,7 @@ def enclosure_tree(polygons):

# if there are multiple nested polygons split the graph
# so the contains logic returns the individual polygons
if degrees.max() > 1:
if len(degrees) > 0 and degrees.max() > 1:
# this could also be done by removing edges but
# the bookkeeping is a lot easier to comprehend
# with subgraphs
Expand Down
2 changes: 1 addition & 1 deletion trimesh/version.py
@@ -1 +1 @@
__version__ = '2.33.14'
__version__ = '2.33.15'

0 comments on commit 8c83dbd

Please sign in to comment.