Skip to content

Commit

Permalink
Simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Sep 6, 2024
1 parent 74b614b commit bfc5e54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pytransform3d/_mesh_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ def _convert_scene_to_mesh(self, obj): # pragma: no cover
patch_version = 0
if minor_version >= 4 and patch_version >= 9:
return obj.to_mesh()
elif minor_version >= 2:
return obj.dump(concatenate=True)
return obj.dump().sum()
return obj.dump(concatenate=True)

def convex_hull(self):
self.mesh = self.mesh.convex_hull
Expand Down

0 comments on commit bfc5e54

Please sign in to comment.