Skip to content

Commit

Permalink
Added test version requirements for Maya and USD
Browse files Browse the repository at this point in the history
  • Loading branch information
AramAzhari-adsk committed Oct 25, 2023
1 parent f5967b5 commit a6e492c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
import unittest

import fixturesUtils

try:
import mayaUtils
except ImportError:
pass

class testExportFannedOutFileNodesMaterial(unittest.TestCase):

@classmethod
Expand All @@ -42,6 +46,7 @@ def setUpClass(cls):
def tearDownClass(cls):
standalone.uninitialize()

@unittest.skipUnless("mayaUtils" in globals() and mayaUtils.mayaMajorVersion() >= 2023 and Usd.GetVersion() > (0, 21, 2), 'Requires MaterialX support.')
def testMaterialScopeResolution(self):
# New default value as per USD Asset WG:
self.assertEqual(mayaUsdLib.JobExportArgs.GetDefaultMaterialsScopeName(), "mtl")
Expand Down

0 comments on commit a6e492c

Please sign in to comment.