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-105175: Rewrote the rename restriction algorithm from scratch to cover more edge cases. #786

Merged
merged 11 commits into from
Sep 24, 2020
5 changes: 1 addition & 4 deletions lib/mayaUsd/ufe/private/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ void applyCommandRestriction(const UsdPrim& prim, const std::string& commandName

// if the over exist in the session layer
if (spec->GetSpecifier() == SdfSpecifierOver) {
auto sessionLayer = prim.GetStage()->GetSessionLayer();
if (sessionLayer == spec->GetLayer()){
layerDisplayName.append("[" + spec->GetLayer()->GetDisplayName() + "]" + ",");
}
layerDisplayName.append("[" + spec->GetLayer()->GetDisplayName() + "]" + ",");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove redundant check to distinguish if the "over" specifier is in the session layer.

}

// if the def primspec is in another layer other than current stage's local layer.
Expand Down