-
Notifications
You must be signed in to change notification settings - Fork 201
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
MAYA-107463 Make sure we leave default material mode when the test ends. Check fo… #1552
Conversation
…r UFE version correctly.
lib/mayaUsd/CMakeLists.txt
Outdated
@@ -69,7 +69,7 @@ if (MAYA_API_VERSION VERSION_GREATER_EQUAL 20220100 AND MAYA_API_VERSION VERSION | |||
) | |||
endif() | |||
|
|||
if (MAYA_API_VERSION VERSION_GREATER_EQUAL 20230000 AND UFE_VERSION VERSION_GREATER_EQUAL 2.0.3) | |||
if (MAYA_API_VERSION VERSION_GREATER_EQUAL 20230000 AND UFE_VERSION VERSION_GREATER_EQUAL 0.3.0) |
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.
Building with master I discovered this expression was wrong.
def tearDownClass(cls): | ||
panel = mayaUtils.activeModelPanel() | ||
cmds.modelEditor(panel, edit=True, useDefaultMaterial=False) | ||
|
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.
If testInstanceDefaultMaterial fails the image test while useDefaultMaterial is enabled the rest of the script doesn't run to turn it off. I have to set useDefaultMaterial false in the tearDownClass so other scripts will not have it on, and also at the start of the other test runs within this script to ensure they don't have it on.
…r UFE version correctly.
Discovered this while working on MAYA-107463, decided to split out the useful changes because that work is held up.