Skip to content

Commit b713626

Browse files
committed
Update test_mesh.py
1 parent 4ddf88f commit b713626

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test_mesh.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def test_morph_scale(scale, mesh_file, show_viewer, tmp_path):
223223
)
224224
assert robot_scaled.n_vgeoms == obj_scaled.n_vgeoms
225225

226-
227226
for i_vg in range(obj_orig.n_vgeoms):
228227
mesh_orig = obj_orig.vgeoms[i_vg].vmesh.trimesh.copy()
229228
mesh_orig.apply_transform(gu.trans_quat_to_T(obj_orig.base_link.pos, obj_orig.base_link.quat))
@@ -668,6 +667,16 @@ def test_2_channels_luminance_alpha_textures(show_viewer):
668667
)
669668

670669

670+
@pytest.mark.required
671+
def test_plane_texture_path_preservation(show_viewer):
672+
"""Test that plane primitives preserve texture paths in metadata."""
673+
scene = gs.Scene(show_viewer=show_viewer, show_FPS=False)
674+
plane = scene.add_entity(gs.morphs.Plane())
675+
676+
# The texture path should be stored in metadata
677+
assert plane.vgeoms[0].vmesh.metadata["texture_path"] == "textures/checker.png"
678+
679+
671680
@pytest.mark.required
672681
@pytest.mark.parametrize(
673682
"n_channels, float_type",

0 commit comments

Comments
 (0)