Skip to content

Commit

Permalink
fix string check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Feb 8, 2020
1 parent ae6052f commit b75e215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trimesh/scene/scene.py
Expand Up @@ -209,7 +209,7 @@ def delete_geometry(self, names):
Name that references self.geometry
"""
# make sure we have a set we can check
if isinstance(names, util.basestring):
if util.is_string(names):
names = [names]
names = set(names)

Expand Down
2 changes: 1 addition & 1 deletion trimesh/scene/transforms.py
Expand Up @@ -292,7 +292,7 @@ def remove_geometries(self, geometries):
Name of scene.geometry to dereference.
"""
# make sure we have a set of geometries to remove
if isinstance(geometries, util.basestring):
if util.is_string(geometries):
geometries = [geometries]
geometries = set(geometries)

Expand Down

0 comments on commit b75e215

Please sign in to comment.