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

Bug: When renaming Prim in the Prim Hierarchy it moves it to the end of the siblings #15

Closed
BigRoy opened this issue Nov 23, 2023 · 0 comments · Fixed by #21
Closed
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@BigRoy
Copy link
Owner

BigRoy commented Nov 23, 2023

Upon renaming a Prim in the Hierarchy model it moves it to the end of the hierarchy instead of just renaming, keeping its index.

This is likely due to usd_qtpy.lib.usd.rename_prim going through usd_qtpy.lib.usd.move_prim_spec logic which ends up using Sdf.NamespaceEdit.ReparentAndRename but should actually - when staying under the same parent, use Sdf.NamespaceEdit.Rename which likely makes the prim keep its index among its siblings.

@BigRoy BigRoy added bug Something isn't working good first issue Good for newcomers labels Nov 23, 2023
BigRoy added a commit that referenced this issue Nov 26, 2023
@BigRoy BigRoy self-assigned this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant