Skip to content

Commit

Permalink
missed simplificatiuon opportunity
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Leprince committed Oct 19, 2018
1 parent 6d0ba9e commit 0dc99b3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions RenderMan/rmanAssetsSubstancePainter.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,13 @@ def export():
nodeName = "%s_%s_tex" % (label, chan)
DBUG(' |_ %s' % nodeName)
chanNodes[chan] = nodeName
if chan not in _bump:
add_texture_node(asset, nodeName, 'PxrTexture', fpath)
set_params(settings, chan, nodeName, asset)
if chan == 'normal':
add_texture_node(asset, nodeName, 'PxrNormalMap', fpath)
elif chan == 'height':
add_texture_node(asset, nodeName, 'PxrBump', fpath)
else:
if chan == 'normal':
add_texture_node(asset, nodeName, 'PxrNormalMap', fpath)
elif chan == 'height':
add_texture_node(asset, nodeName, 'PxrBump', fpath)
else:
DBUG(' ! wow: %s' % chan)
set_params(settings, chan, nodeName, asset)
add_texture_node(asset, nodeName, 'PxrTexture', fpath)
set_params(settings, chan, nodeName, asset)

# make direct connections
#
Expand Down

0 comments on commit 0dc99b3

Please sign in to comment.