Skip to content

Commit

Permalink
enable exportDisplayColor in testProxyShapeDrawColors test following A…
Browse files Browse the repository at this point in the history
…utodesk#822

Internally, we have a post-process to the testProxyShapeDrawColors test that
diffs a render generated from the viewport against a baseline. Following the
merge of PR Autodesk#822, the test began to fail since displayColor was no longer being
exported, so the color represented in the image was different. This change
turns on the exportDisplayColor option to cmds.usdExport() so that displayColor
is present in the exported USD, and the rendered image matches the baseline
again.
  • Loading branch information
mattyjams committed Oct 14, 2020
1 parent 96d40b7 commit 0ccd055
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def testMeshNextToProxyShapeAndImported(self):
x = self._PlaneWithColor((0.55, 0.55, 0.55))
cmds.select(x)
usdFile = os.path.join(self._testDir, 'plane.usd')
cmds.mayaUSDExport(file=usdFile, selection=True, shadingMode='displayColor')
cmds.mayaUSDExport(file=usdFile, selection=True, shadingMode='none',
exportDisplayColor=True)
proxyShape = cmds.createNode('mayaUsdProxyShape', name='usdProxyShape')
proxyTransform = cmds.listRelatives(proxyShape, parent=True,
fullPath=True)[0]
Expand Down

0 comments on commit 0ccd055

Please sign in to comment.