diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2019-09-21 13:07:15 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2019-09-21 13:07:46 +0300 |
commit | 0d585a73ef03ce8ba0757525a1d85e8cd563a35a (patch) | |
tree | 6f464162e208c9204a197335ecfeccc11510f380 /io_coat3D/tex.py | |
parent | d3811cba7b2072becdb1331c73940dd32dd5b29b (diff) |
io_coat3D: Big update: Better REFERENCE MESH and VOXEL MESH support.
Diffstat (limited to 'io_coat3D/tex.py')
-rw-r--r-- | io_coat3D/tex.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py index fd2e893e..9e2f48ab 100644 --- a/io_coat3D/tex.py +++ b/io_coat3D/tex.py @@ -565,17 +565,18 @@ def CreateTextureLine(type, act_material, main_mat, texcoat, coat3D, notegroup, tile_int_x = int(tile[3]) tile_int_y = int(tile[2]) - + min_node = texture_tree.nodes.new('ShaderNodeVectorMath') min_node.operation = "MINIMUM" min_node.inputs[1].default_value[0] = tile_int_x - 1 min_node.inputs[1].default_value[1] = tile_int_y - + max_node = texture_tree.nodes.new('ShaderNodeVectorMath') max_node.operation = "MAXIMUM" max_node.inputs[1].default_value[0] = tile_int_x max_node.inputs[1].default_value[1] = tile_int_y + 1 + if(index == 0): nodes.append(tex_img_node.name) if(count == 1): |