-
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
LOOKDEVX-1625 - Use proper API to set color space in USD #3515
LOOKDEVX-1625 - Use proper API to set color space in USD #3515
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.
LGTM, just a couple of minor comments.
@@ -406,6 +406,9 @@ Ufe::Value UsdAttributeHolder::getMetadata(const std::string& key) const | |||
} | |||
#endif | |||
return Ufe::Value(niceName); | |||
} else if (key == SdfFieldKeys->ColorSpace) { | |||
auto csValue = _usdAttr.GetColorSpace(); |
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.
Can this be const?
if (isValid()) { | ||
if (key == SdfFieldKeys->ColorSpace) { | ||
if (!value.empty() && value.isType<std::string>()) { | ||
AttributeEditRouterContext ctx(_usdAttr.GetPrim(), _usdAttr.GetName()); |
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.
Can this be const?
36b9ee4
@seando-adsk Ready for merge. |
No description provided.