Skip to content

Commit c51db7b

Browse files
KumoLiuCopilot
andauthored
Update modules/omniverse/utility.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: YunLiu <[email protected]>
1 parent bfec26c commit c51db7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/omniverse/utility.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,11 @@ def convert_mesh_to_usd(input_file, output_file):
204204
# Create a unique path for each mesh
205205
node_path = f"/World/{node_name}"
206206
xform = UsdGeom.Xform.Define(stage, node_path)
207+
# Define the Mesh under the Xform
208+
mesh_path = f"{node_path}/Mesh"
209+
usd_mesh = UsdGeom.Mesh.Define(stage, mesh_path)
207210
# get the geometry of the node
208211
geometry = mesh.geometry[geom_name]
209-
usd_mesh = UsdGeom.Mesh.Define(stage, node_path)
210212

211213
# Create a random color for this mesh
212214
# Using HSV for better color distribution

0 commit comments

Comments
 (0)