Updating for PR comments

This commit is contained in:
Abhishek Joshi
2024-08-02 15:13:25 -05:00
parent 30b98fbe6a
commit e0483c2f86
4 changed files with 26 additions and 28 deletions
+4 -5
View File
@@ -251,11 +251,10 @@ class USDExporter:
assert geom_name not in self.geom_names
geom_textures = (
[(self.texture_files[i], self.model.tex_type[i]) if i != -1 else None for i in self.model.mat_texid[geom.matid]]
if geom.matid != -1
else None
)
if geom.matid == -1:
geom_textures = []
else:
geom_textures = [(self.texture_files[i], self.model.tex_type[i]) if i != -1 else None for i in self.model.mat_texid[geom.matid]]
# handling meshes in our scene
if geom.type == mujoco.mjtGeom.mjGEOM_MESH: