Skip to content

Commit

Permalink
Merge pull request #3961 from Autodesk/gamaj/MAYA-135290/add_open_pbr…
Browse files Browse the repository at this point in the history
…_support

Add support for OpenPBR as default material
  • Loading branch information
seando-adsk authored Oct 16, 2024
2 parents 3a22af3 + 08ea7b8 commit dae864e
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 dae864e

Please sign in to comment.