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

Use new UsdPrimDefintionAPI with latest USD #3098

Merged
merged 2 commits into from
May 25, 2023

Conversation

dj-mcg
Copy link
Collaborator

@dj-mcg dj-mcg commented May 17, 2023

This API change will take effect with the next USD release - 23.08.

VtTokenArray allowedTokens;
if (_usdAttr.GetPrim().GetPrimDefinition().GetPropertyMetadata(
_usdAttr.GetName(), SdfFieldKeys->AllowedTokens, &allowedTokens)) {
for (auto const& token : allowedTokens) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

IDK enough to judge, but I'm going to rightly assume you know better than us about the right way to fetch enum tokens :)

Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

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

Just a few questions, otherwise LGTM.

@seando-adsk seando-adsk added ufe-usd Related to UFE-USD plugin in Maya-Usd ready-for-merge Development process is finished, PR is ready for merge labels May 25, 2023
@seando-adsk seando-adsk merged commit 2165bb6 into Autodesk:dev May 25, 2023
@dj-mcg dj-mcg deleted the pr/Use_New_UsdPrimDefinition_API branch May 25, 2023 20:07
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