Skip to content

Commit e4087d9

Browse files
authored
Merge pull request #1123 from StanfordVL/fix-meta-geom-path
Fix meta link geom prim path inference
2 parents b2d40ba + d43adce commit e4087d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

omnigibson/object_states/particle_modifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def overlap_callback(hit):
348348
"height": 1.0,
349349
"size": 1.0,
350350
}
351-
mesh_prim_path = f"{self.link.prim_path}/mesh_0"
351+
mesh_prim_path = f"{self.link.prim_path}/visuals/mesh_0"
352352

353353
# Create a primitive shape if it doesn't already exist
354354
pre_existing_mesh = lazy.omni.isaac.core.utils.prims.get_prim_at_path(mesh_prim_path)

omnigibson/object_states/toggle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _initialize(self):
9999
# Make sure this object is not cloth
100100
assert self.obj.prim_type != PrimType.CLOTH, f"Cannot create ToggledOn state for cloth object {self.obj.name}!"
101101

102-
mesh_prim_path = f"{self.link.prim_path}/mesh_0"
102+
mesh_prim_path = f"{self.link.prim_path}/visuals/mesh_0"
103103
pre_existing_mesh = lazy.omni.isaac.core.utils.prims.get_prim_at_path(mesh_prim_path)
104104
# Create a primitive mesh if it doesn't already exist
105105
if not pre_existing_mesh:

0 commit comments

Comments
 (0)