Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Jul 27, 2023
1 parent 39d8c5a commit 75761bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytransform3d/mesh_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def load(self):
except ImportError:
return False
obj = trimesh.load(self.filename)
if isinstance(obj, trimesh.Scene):
if isinstance(obj, trimesh.Scene): # pragma: no cover
# Special case in which we load a collada file that contains
# multiple meshes. We might lose textures. This is excluded
# from testing as it would add another dependency.
obj = obj.dump().sum()
self.mesh = obj
return True
Expand Down

0 comments on commit 75761bc

Please sign in to comment.