Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing scene objects can only deactivate them #907

Open
ChengshuLi opened this issue Sep 26, 2024 · 0 comments
Open

Removing scene objects can only deactivate them #907

ChengshuLi opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ChengshuLi
Copy link
Member

We will still see the prim on the current stage, but it will be grayed out. This is the best we can do when removing an object that is originally in the scene json because we pre-baked all the objects into a monolithic USD before loading it.

And unfortunately we cannot add a new prim at this path afterwards, which can introduce some unexpected behavior (e.g. if we save the scene with og.sim.save, and then remove a scene object, og.sim.restore won't be able to incrementally import back the original object).

Potential TODOs:

  1. print out an error if the user tries to import an object at an deactivated prim path
  2. og.sim.restore() should restore from scratch if this error is detected
@ChengshuLi ChengshuLi added the bug Something isn't working label Sep 26, 2024
@ChengshuLi ChengshuLi self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant