Skip to content

Commit

Permalink
Fixes #203
Browse files Browse the repository at this point in the history
  • Loading branch information
eyllanesc committed Mar 18, 2022
1 parent ef05b8f commit 5069aeb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/unit/test_meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,12 @@ def test_meshes():
assert x.primitives[0].color_0 is not None
assert x.is_transparent

bm = trimesh.load("tests/data/WaterBottle.glb").dump()[0]
# bm = trimesh.load("tests/data/WaterBottle.glb").dump()[0]
bm = trimesh.load("tests/data/WaterBottle.glb").geometry["WaterBottle"]
x = Mesh.from_trimesh(bm)
assert x.primitives[0].material.baseColorTexture is not None

from packaging.version import Version

if Version(trimesh.__version__) <= Version("3.9.32"):
# FIXME
assert x.primitives[0].material.emissiveTexture is not None
assert x.primitives[0].material.metallicRoughnessTexture is not None
assert x.primitives[0].material.emissiveTexture is not None
assert x.primitives[0].material.metallicRoughnessTexture is not None

# From point cloud
x = Mesh.from_points(fm.vertices)
Expand Down

0 comments on commit 5069aeb

Please sign in to comment.