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-571 | Adds support for converting strings with options into #2588

Merged
merged 3 commits into from
Sep 12, 2022

Conversation

feldstj
Copy link
Collaborator

@feldstj feldstj commented Sep 9, 2022

enum strings.

@seando-adsk seando-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Sep 9, 2022
Comment on lines +423 to +424
@unittest.skipIf(os.getenv('USD_HAS_MX_METADATA_SUPPORT', 'NOT-FOUND') not in ('1', "TRUE"), 'Test only available if USD can read MaterialX metadata')
@unittest.skipIf(os.getenv('UFE_PREVIEW_VERSION_NUM', '0000') < '4001', 'nodeDefHandler is only available in UFE preview version 0.4.1 and greater')
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ppt-adsk Does using two conditions like this work? I've never seen this before.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Decorators can be chained like this. Was used for testCreateUsdPreviewSurfaceAttribute in test\lib\ufe\testAttribute.py.

@ppt-adsk ppt-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 12, 2022
@ppt-adsk ppt-adsk merged commit e80c082 into dev Sep 12, 2022
@feldstj feldstj deleted the feldstj/string_enum2 branch September 12, 2022 14:50
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.

5 participants