-
Notifications
You must be signed in to change notification settings - Fork 201
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
MAYA-125028 add layer muting serialization to the proxy shape #2580
Conversation
pierrebai-adsk
commented
Sep 2, 2022
•
edited
Loading
edited
- 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.
There was a problem hiding this 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.
lib/mayaUsd/utils/loadRules.h
Outdated
@@ -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); |
There was a problem hiding this comment.
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.
Only PF failure are the two Linux interactive builds failed to launch... unrelated. |
@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. |