Skip to content

Commit

Permalink
python2 scope fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Jul 21, 2018
1 parent 9f23908 commit dd10c22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_paths.py
Expand Up @@ -39,7 +39,7 @@ def test_discrete(self):
assert d.md5() == md5
# make sure None polygons are not referenced in graph
assert all(d.polygons_closed[i] is not None
for i in d.enclosure_directed.nodes)
for i in d.enclosure_directed.nodes())

# file_name should be populated, and if we have a DXF file
# the layer field should be populated with layer names
Expand Down
4 changes: 2 additions & 2 deletions trimesh/path/path.py
Expand Up @@ -916,8 +916,8 @@ def polygons_full(self):
for i, root in enumerate(self.root):
# a list of multiple Polygon objects that
# are fully contained by the root curve
children = [self.polygons_closed[i]
for i in enclosure[root].keys()]
children = [self.polygons_closed[child]
for child in enclosure[root].keys()]
# all polygons_closed are CCW, so for interiors reverse them
holes = [np.array(p.exterior.coords)[::-1] for p in children]
# a single Polygon object
Expand Down
2 changes: 1 addition & 1 deletion trimesh/version.py
@@ -1 +1 @@
__version__ = '2.31.34'
__version__ = '2.31.36'

0 comments on commit dd10c22

Please sign in to comment.