Skip to content

Commit

Permalink
Merge branch 'ershi/fix-example-walker' into 'main'
Browse files Browse the repository at this point in the history
Fix usd-core breaking change for example_walker.py

See merge request omniverse/warp!817
  • Loading branch information
shi-eric committed Oct 26, 2024
2 parents 6cb9011 + 4f419e7 commit 72e3e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warp/examples/optim/example_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import os

import numpy as np
from pxr import Usd, UsdGeom
from pxr import Gf, Usd, UsdGeom

import warp as wp
import warp.examples
Expand Down Expand Up @@ -93,7 +93,7 @@ def __init__(self, stage_path="example_walker.usd", verbose=False, num_frames=30
geom = UsdGeom.Mesh(asset_stage.GetPrimAtPath("/root/bear"))
points = geom.GetPointsAttr().Get()

xform = geom.ComputeLocalToWorldTransform(0.0)
xform = Gf.Matrix4f(geom.ComputeLocalToWorldTransform(0.0))
for i in range(len(points)):
points[i] = xform.Transform(points[i])

Expand Down

0 comments on commit 72e3e81

Please sign in to comment.