-
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
[mtoh] Refactor settings / defaultRenderGlobals storage #758
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.
Mostly looks good - I definitely like the overall goal here, so glad to have this PR, and thank you!
Just a few small typos / comments / questions...
@marsupial Have a look as well at the build errors with MacOS - https://github.com/Autodesk/maya-usd/pull/758/checks. You can get build logs by downloading the artifact associated with the check. |
ADD: Accept USD namespaced properties. ADD: -renderer flag to mtoh command/ ADD: Save and restore user state via optionVars. FIX: Delegates with settings named the same pushing their changes to one-another. FIX: Change of one setting incurring a full reload / set of all settings. FIX: Have changes set via AttributeEditor get pushed to delegates. FIX: Multiple copies of MtohRenderGlobals exiting in disparate places. FIX: Ugly/non-existant layout for Hydra setting in the AttributeEditor. FIX: Mtoh possibly inserting extra settings with the same name as a delegates.
9751d8e
to
e280a2c
Compare
Resolved all the 'simple' stuff as I went through them, but let the longer comments open |
@marsupial I'm trying to get a sense of where we are with this PR? Your last comment mentions that there are still unresolved comments. As well, did you fix mac build errors mentioned here - #758 (comment) |
They've all been addressed as far as I'm aware. |
@pmolodo Anything is still missing before you can approve this PR? |
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.
Basically there - all the more significant changes were made, just a typo, missed rename, and a few more instances of braceless-ifs left.
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!
There are a few issues with the current render-settings / defaultRenderGlobals, that make it difficult for a delegate to merge USDRenderSettings and HdDelegate::SetRendererSetting. The larger goal of editing a USDRenderSettings and applying a delegates schema aren't dealt with here, as the PR seems large enough just to address the current issues: