Skip to content

Commit

Permalink
ArnoldShaderUI : Avoid nodules for AI_TYPE_NODE parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Nov 15, 2023
1 parent 85b62f9 commit 0d80c8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/GafferArnoldUI/ArnoldShaderUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def __translateNodeMetadata( nodeEntry ) :
nodeEntry, paramName, "linkable",
defaultValue = paramType not in (
arnold.AI_TYPE_BYTE, arnold.AI_TYPE_INT, arnold.AI_TYPE_UINT,
arnold.AI_TYPE_BOOLEAN, arnold.AI_TYPE_ENUM, arnold.AI_TYPE_STRING
arnold.AI_TYPE_BOOLEAN, arnold.AI_TYPE_ENUM, arnold.AI_TYPE_STRING,
arnold.AI_TYPE_NODE
)
)
__metadata[paramPath]["nodule:type"] = None if linkable else ""
Expand Down

0 comments on commit 0d80c8c

Please sign in to comment.