-
Notifications
You must be signed in to change notification settings - Fork 202
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
EMSUSD-873 - Adds write permission checks to layer system-locking #3626
EMSUSD-873 - Adds write permission checks to layer system-locking #3626
Conversation
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.
Minor comments, LGTM
…s-Write-Permission-Check-To-Layer-System-Locking # Conflicts: # lib/usd/ui/layerEditor/abstractCommandHook.h # lib/usd/ui/layerEditor/mayaCommandHook.h
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.
LGTM
def GetFullStageNameFromProxyShapeAttr(attr): | ||
# Helper method which returns the full stage name | ||
# First get the stage name from the input attribute. | ||
stageName = attr.split('.')[0] | ||
# Convert that into a long Maya path so we can get the USD stage. | ||
res = cmds.ls(stageName, l=True) | ||
fullStageName = res[0] | ||
|
||
return(fullStageName) |
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.
Why was this function needed? Couldn't you just have called the one above and ignore the stage?
fullStageName,_ = GetStageFromProxyShapeAttr(filePathAttr)
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.
Fair point. I have an upcoming PR and I am taking note to address this.
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.
Okay thanks. I'll merge this one then.
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.
Thank you
Some of the layer operations will refresh the system-lock based on the write permissions of those layers. The operations are as follows:
Note that: