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

Disable edit as Maya for materials. #2631

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

ppt-adsk
Copy link
Collaborator

No description provided.

}

/* virtual */
bool MaterialUpdater::canEditAsMaya() const { return false; }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the single important line of this pull request: disabling edit as Maya for materials, as per design's request. Perhaps we will find a workflow that will allow this in the future, but for now edit as Maya on a material does nothing and produces a warning.

@@ -65,7 +64,6 @@ def tearDownClass(cls):
def setUp(self):
cmds.file(new=True, force=True)

@unittest.skipUnless(ufeFeatureSetVersion() >= 3, 'Test only available in UFE v3 or greater.')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The CMakeLists.txt file explicitly adds this test file only for UFE v3, so further checking in the test is redundant.

@ppt-adsk ppt-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 28, 2022
@seando-adsk seando-adsk merged commit f138ca6 into dev Sep 28, 2022
@seando-adsk seando-adsk deleted the tremblp/MAYA-123848/prevent_usdShade_editAsMaya branch September 28, 2022 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
materials ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants