Skip to content

Commit

Permalink
Reorder some things
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Dec 13, 2023
1 parent d774505 commit dd49f35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions omnigibson/prims/entity_prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def _load(self):
raise NotImplementedError("By default, an entity prim cannot be created from scratch.")

def _post_load(self):
# Prepare the articulation view (at this point only working via the USD interface)
# Setup links info FIRST before running any other post loading behavior
# We pass in scale explicitly so that the generated links can leverage the desired entity scale
self.update_links(load_config=dict(scale=self._load_config.get("scale", None)))

# Prepare the articulation view.
if self.n_joints > 0:
self._articulation_view = ExtendedArticulationView(self._prim_path + "/base_link")

Expand Down Expand Up @@ -118,10 +122,6 @@ def _post_load(self):
omni.kit.commands.execute("CopyPrim", path_from=cloth_mesh_prim.GetPath(), path_to=new_path)
omni.kit.commands.execute("DeletePrims", paths=[old_link_prim.GetPath()], destructive=False)

# Setup links info FIRST before running any other post loading behavior
# We pass in scale explicitly so that the generated links can leverage the desired entity scale
self.update_links(load_config=dict(scale=self._load_config.get("scale", None)))

# Set visual only flag
# This automatically handles setting collisions / gravity appropriately per-link
self.visual_only = self._load_config["visual_only"] if \
Expand Down

0 comments on commit dd49f35

Please sign in to comment.