Skip to content

Commit

Permalink
ArnoldShaderUI : use mechanism provided by ShaderUI for userDefault r…
Browse files Browse the repository at this point in the history
…egistration
  • Loading branch information
Matti Gruener committed Aug 19, 2019
1 parent dd16f9f commit d2a3aad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/GafferArnoldUI/ArnoldShaderUI.py
Expand Up @@ -283,8 +283,9 @@ def __translateNodeMetadata( nodeEntry ) :
userDefault = __aiMetadataGetStr( nodeEntry, paramName, "gaffer.userDefault" )

if userDefault:
__metadata[paramPath]["userDefault"] = userDefault

nodeName, _, plugName = paramPath.split( "." )
Gaffer.Metadata.registerValue( "ai:surface:%s:%s" % ( nodeName, plugName ), "userDefault", userDefault )


with IECoreArnold.UniverseBlock( writable = False ) :

Expand Down

0 comments on commit d2a3aad

Please sign in to comment.