Skip to content

Commit

Permalink
update threshold for osx and test scene for 2025.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lilike-adsk committed Oct 28, 2024
1 parent f6b4063 commit abf0a67
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 92 deletions.
7 changes: 6 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testOpenPBRSurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ class TestOpenPBRSurface(mtohUtils.MayaHydraBaseTestCase): #Subclassing mtohUtil
_file = __file__

IMAGE_DIFF_FAIL_THRESHOLD = 0.01
IMAGE_DIFF_FAIL_PERCENT = 0.2
@property
def IMAGE_DIFF_FAIL_PERCENT(self):
# Use a larger tolerance for transparency on OSX
if platform.system() == "Darwin":
return 2
return 0.2

#Test the translation from maya OpenPBR surface with a maya native plane to usd preview surface.
def test_OpenPBRSurface(self):
Expand Down
Loading

0 comments on commit abf0a67

Please sign in to comment.