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

Fixing autotest failures that arise after enabling UFE Proxy Lights in Maya #2373

Merged
merged 3 commits into from
May 24, 2022

Conversation

vlasovi
Copy link
Collaborator

@vlasovi vlasovi commented May 24, 2022

No description provided.

self.assertEqual(len(mc.ls(type='directionalLight')), 1)
# Latest (2022-05-24) Maya preview release creates proxy light nodes in the scene for USD lights,
# so the query below returns 2 now. Comment out the check.
#self.assertEqual(len(mc.ls(type='directionalLight')), 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should keep the check there and assert that the value is 2. That way if the behavior changes we can detect it. We'll have to add some python code to detect the Maya version and change the test based on that.

Something along the lines of :

mayaUtils.mayaMajorVersion() > 2023

should be useful.

@vlasovi vlasovi added the ready-for-merge Development process is finished, PR is ready for merge label May 24, 2022
@neilh-adsk neilh-adsk merged commit b6960e6 into dev May 24, 2022
@seando-adsk seando-adsk added ufe-usd Related to UFE-USD plugin in Maya-Usd unit test Related to unit tests (both python or c++) labels May 25, 2022
@seando-adsk seando-adsk deleted the vlasovi/AutotestFix branch May 25, 2022 13:51
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 unit test Related to unit tests (both python or c++)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants