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

MAYA-129169 improve the behavior of duplication vs payload #3065

Merged
merged 1 commit into from
May 8, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

Handling all possible scenarios is potentially impossible given that our Maya-level view are of fully composed prims. So when Maya requests to duplicate a prim, we get a simple request to duplicate whatever is at a given UFE path. In USD, that could be in the stage, in a payload, in a reference or a combination of these. Plus, given composed opinions from multiple layers, it could be a complex combination.

This change slightly improve the behaviour to handle some simple the cases.

  • Add heuristics to try to do the right thing when payloads are involved.
  • Make sure to always at least keep the defining layer, in case the heuristic thinks it should be rejected.
  • Added a unit test for duplicate with payload.

Handling all possible scenarios is potentially impossible given that our Maya-level view are of fully composed prims. So when Maya requests to duplicate a prim, we get a simple request to duplicate whatever is at a given UFE path. In USD, that could be in the stage, in a payload, in a reference or a combination of these. Plus, given composed opinions from multiple layers, it could be a complex combination.

This change slightly improve the behaviour to handle some simple the cases.

- Add heuristics to try to do the right thing when payloads are involved.
- Make sure to always at least keep the defining layer, in case the heuristic thinks it should be rejected.
- Added a unit test for duplicate with payload.
@pierrebai-adsk
Copy link
Collaborator Author

PF #959, only failure is the known image comparison test failure in Windows 2020

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label May 5, 2023
@seando-adsk seando-adsk added the workflows Related to in-context workflows label May 8, 2023
@seando-adsk seando-adsk merged commit 2cdda86 into dev May 8, 2023
@seando-adsk seando-adsk deleted the bailp/MAYA-129169/duplicate-ref branch May 8, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants