Skip to content

Commit

Permalink
Skip testOpacityThreshold with Maya light API v1.
Browse files Browse the repository at this point in the history
UsdPreviewSurface fragment graph for v1 does not support opacityThreshold input.
  • Loading branch information
jufrantz committed Oct 14, 2024
1 parent 5bc1a66 commit 1ca8787
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# limitations under the License.
#

import unittest

import fixturesUtils
import imageUtils

Expand Down Expand Up @@ -271,6 +273,7 @@ def testDoubleSided(self):
mayaUtils.setBasicCamera(3)
self.assertSnapshotClose('doubleSided_disabled_back.png')

@unittest.skipUnless(int(os.getenv("MAYA_LIGHTAPI_VERSION")) >= 2, 'UsdPreviewSurface fragment graph for light API v1 does not support opacityThreshold')
def testOpacityThreshold(self):
'''
Test UsdPreviewSurface transparency cut-out. The surface fragments should be
Expand Down

0 comments on commit 1ca8787

Please sign in to comment.