Skip to content

Commit

Permalink
#2: don't error on missing maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Leprince committed May 8, 2017
1 parent cd3567e commit 9aabd45
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions RenderMan/rmanAssetsSubstancePainter.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ def export():
src_node = bxdfNode
elif src_node.startswith('ch:'):
src_ch = src_node[3:]
src_node = chanNodes[src_ch]
if src_ch in chanNodes:
src_node = chanNodes[src_ch]
else:
continue
if not src_node.startswith(label):
src_node = label + src_node
src = '%s.%s' % (src_node, con['src']['param'])
Expand All @@ -336,7 +339,10 @@ def export():
dst_node = bxdfNode
elif dst_node.startswith('ch:'):
dst_ch = dst_node[3:]
dst_node = chanNodes[dst_ch]
if dst_ch in chanNodes:
dst_node = chanNodes[dst_ch]
else:
continue
if not dst_node.startswith(label):
dst_node = label + dst_node
dst = '%s.%s' % (dst_node, con['dst']['param'])
Expand Down

0 comments on commit 9aabd45

Please sign in to comment.