Skip to content

Commit

Permalink
Add support for OpenPBR as default material
Browse files Browse the repository at this point in the history
  • Loading branch information
JGamache-autodesk committed Oct 15, 2024
1 parent 3a22af3 commit 08ea7b8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ def setUpClass(cls):
cls._testDir = os.path.abspath('.')

cls._imageVersion = None
if maya.mel.eval("defaultShaderName") != "standardSurface1":
defaultSurfaceName = maya.mel.eval("defaultShaderName")
if defaultSurfaceName == "lambert1":
cls._imageVersion = 'lambertDefaultMaterial'
elif defaultSurfaceName == "openPBRSurface1":
cls._imageVersion = 'openPBRSurfaceDefaultMaterial'

@classmethod
def tearDownClass(cls):
Expand Down

0 comments on commit 08ea7b8

Please sign in to comment.