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-125028 add layer muting serialization to the proxy shape #2580

Merged
merged 4 commits into from
Oct 6, 2022

Conversation

pierrebai-adsk
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk commented Sep 2, 2022

  • Refactor common code to manage a dynamic string attribute on a Maya node.
  • Refactor the load rules to use the new common dynamic attribute code.
  • Add a new attribute on the proxy shape for layer muting.
  • Added unit tests.

- Refactor common code to manage a dynamic string attribute on a Maya node.
- Refactor the load rules to use the new common dynamic attribute code.
- Add a new dynamic attribute on the proxy shape for layer muting.
- Refactor the code used to save load rules to also save layer muting.
- Added unit tests.
- Use a normal attribute instead of a dynamic attribute.
- Use a string-array attribute to store multiple values.
- Listen to the USD notifications to store the muted layers instead of in a pre-save callback.
Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a trivial const ref argument change to make.

@@ -63,17 +63,20 @@ PXR_NS::UsdStageLoadRules createLoadRulesFromText(const MString& text);
/*! \brief verify if there is a dynamic attribute on the object for load rules.
*/
MAYAUSD_CORE_PUBLIC
bool hasLoadRulesAttribute(const MObject& obj);
bool hasLoadRulesAttribute(PXR_NS::MayaUsdProxyShapeBase& proxyShape);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a query, the proxyShape argument should be a const ref.

@pierrebai-adsk
Copy link
Collaborator Author

Only PF failure are the two Linux interactive builds failed to launch... unrelated.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 3, 2022
@seando-adsk seando-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Oct 3, 2022
@seando-adsk
Copy link
Collaborator

@pierrebai-adsk I removed the "ready to merge" label. The cot team is currently working on our Linux GPU machines trying to fix them. That is why your preflight had errors. Once the machines are fixed you'll need to re-run the preflight. Please wait to do that until I announce the machines are fixed.

@seando-adsk seando-adsk added the core Related to core library label Oct 6, 2022
@seando-adsk seando-adsk merged commit c610a03 into dev Oct 6, 2022
@seando-adsk seando-adsk deleted the t_bailp/MAYA-125028/layers-muted-state-saving branch October 6, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants