Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hang-yin committed Oct 2, 2024
1 parent 66a1db6 commit 3246e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion omnigibson/object_states/particle_modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,9 @@ def systems_to_check(self):
@property
def projection_is_active(self):
# Only active if the projection mesh is enabled
return self.projection_emitter.GetProperty("inputs:active").Get()
return (
self.projection_emitter.GetProperty("inputs:active").Get() if self.projection_emitter is not None else False
)

@classproperty
def metalink_prefix(cls):
Expand Down
3 changes: 0 additions & 3 deletions omnigibson/prims/xform_prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ def set_position_orientation(
xformable_prim = lazy.usdrt.Rt.Xformable(
lazy.omni.isaac.core.utils.prims.get_prim_at_path(self.prim_path, fabric=True)
)
assert (
not xformable_prim.HasWorldXform()
), "Fabric's world pose is set for a non-rigid prim which is unexpected. Please report this."
xformable_prim.SetLocalXformFromUsd()

def get_position_orientation(self, frame: Literal["world", "scene", "parent"] = "world", clone=True):
Expand Down

0 comments on commit 3246e82

Please sign in to comment.