-
Notifications
You must be signed in to change notification settings - Fork 203
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-114593 preserve load state of prims #2141
Conversation
Added code to preserve the loaded or unloaded state of a prim when grouped, reparented or renamed. Note that we don't remove the old rules when duplicating since the source prim still exists. - Refactor the existing load-state preservation code in reusable functions. - Use them in the duplicate, rename, and reparenting commands.
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.
Great job, just minor typos and grammar.
lib/mayaUsd/utils/loadRules.cpp
Outdated
|
||
// Retrieve the effective rule for the source path. | ||
// | ||
// The reason we retrieve the effetive rule is that even |
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.
"effetive" --> "effective".
lib/mayaUsd/utils/loadRules.cpp
Outdated
// | ||
// Note: the UsdStageLoadRules has a Minimize function that simplifies | ||
// rules, but we don't want to change rules the user might have set. | ||
// The user may expect those rules to exists for some future purpose |
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.
"to exists" --> "to exist".
Only the known flaky test TestALUSDMayaPython_LayerManager failed in the interactive linux instance. |
Added code to preserve the loaded or unloaded state of a prim when grouped, reparented or renamed. Note that we don't remove the old rules when duplicating since the source prim still exists.