Skip to content

Commit e8885ad

Browse files
committed
Explicitly calls load_visual_shape if load_visual_shape argument is used.
1 parent 486c149 commit e8885ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

newton/_src/utils/import_usd.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,11 @@ def warn_invalid_desc(path, descriptor) -> bool:
10041004
return True
10051005
return False
10061006

1007+
# parse static visual-only shapes on the World prim
1008+
if load_visual_shapes:
1009+
root_prim = stage.GetPrimAtPath(root_path)
1010+
_load_visual_shapes_impl(-1, root_prim, incoming_world_xform, wp.vec3(1.0, 1.0, 1.0))
1011+
10071012
# Parsing physics materials from the stage
10081013
for sdf_path, desc in data_for_key(ret_dict, UsdPhysics.ObjectType.RigidBodyMaterial):
10091014
if warn_invalid_desc(sdf_path, desc):

0 commit comments

Comments
 (0)