Skip to content

Commit

Permalink
Fixes scaling of default ground plane
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyguo11 committed Oct 3, 2024
1 parent 087535b commit f63803c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,11 @@ def spawn_ground_plane(

# Scale only the mesh
# Warning: This is specific to the default grid plane asset.
if prim_utils.is_prim_path_valid(f"{prim_path}/Enviroment"):
if prim_utils.is_prim_path_valid(f"{prim_path}/Environment"):
# compute scale from size
scale = (cfg.size[0] / 100.0, cfg.size[1] / 100.0, 1.0)
# apply scale to the mesh
omni.kit.commands.execute(
"ChangeProperty",
prop_path=Sdf.Path(f"{prim_path}/Enviroment.xformOp:scale"),
value=scale,
prev=None,
)
prim_utils.set_prim_property(f"{prim_path}/Environment", "xformOp:scale", scale)

# Change the color of the plane
# Warning: This is specific to the default grid plane asset.
Expand Down

0 comments on commit f63803c

Please sign in to comment.