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

LOOKDEVX-1625 - Use proper API to set color space in USD #3515

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

JGamache-autodesk
Copy link
Collaborator

No description provided.

feldstj
feldstj previously approved these changes Dec 14, 2023
Copy link
Collaborator

@feldstj feldstj left a 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();
Copy link
Collaborator

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());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this be const?

seando-adsk
seando-adsk previously approved these changes Dec 14, 2023
@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 14, 2023
@JGamache-autodesk
Copy link
Collaborator Author

@seando-adsk Ready for merge.

@seando-adsk seando-adsk merged commit 1a83777 into dev Dec 14, 2023
@seando-adsk seando-adsk deleted the gamaj/LOOKDEVX-1625/metadata_support_for_color_space branch December 14, 2023 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants