Skip to content

Commit b7b0114

Browse files
committed
HYDRA-1098 : Make viewport filter tests less sensitive to visual appearance changes between versions
1 parent 3729659 commit b7b0114

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/lib/mayaUsd/render/mayaToHydra/testViewportFilters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def stackInstances(self, itemCreationCallable, nbInstances, offset):
9292

9393
def compareSnapshot(self, referenceFilename, cameraDistance):
9494
self.setBasicCam(cameraDistance)
95-
self.assertSnapshotClose(referenceFilename, self.IMAGE_DIFF_FAIL_THRESHOLD, self.IMAGE_DIFF_FAIL_PERCENT)
95+
# Compare silhouettes to only check for whether the objects to filter are visible or not,
96+
# independently of their visual look since it can vary between versions.
97+
self.assertSnapshotSilhouetteClose(referenceFilename, self.IMAGE_DIFF_FAIL_THRESHOLD, self.IMAGE_DIFF_FAIL_PERCENT)
9698

9799
def checkFilter(self, name, exclusionMask, cameraDistance=15):
98100
activeViewport = mayaUtils.activeModelPanel()

0 commit comments

Comments
 (0)