From 0dc99b33701dd22e2e3db74cdff25d642ef02268 Mon Sep 17 00:00:00 2001 From: Philippe Leprince Date: Fri, 19 Oct 2018 15:36:50 +0100 Subject: [PATCH] missed simplificatiuon opportunity --- RenderMan/rmanAssetsSubstancePainter.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/RenderMan/rmanAssetsSubstancePainter.py b/RenderMan/rmanAssetsSubstancePainter.py index 2b9bcf8..f560340 100755 --- a/RenderMan/rmanAssetsSubstancePainter.py +++ b/RenderMan/rmanAssetsSubstancePainter.py @@ -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 #