diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-01-30 16:39:30 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-01-30 16:39:30 +0300 |
commit | 4b94ad37333f868e1d3f29d6505a29f569b6c5dc (patch) | |
tree | 16affff3f006d1d804dff0de25ec7fe1b51f4c3b /io_coat3D/tex.py | |
parent | 43217b129714b161a66c71d22ddde18fdc41197a (diff) |
New 3b path feature added.
Diffstat (limited to 'io_coat3D/tex.py')
-rw-r--r-- | io_coat3D/tex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py index 49af82fb..fd1792f2 100644 --- a/io_coat3D/tex.py +++ b/io_coat3D/tex.py @@ -37,7 +37,7 @@ def find_index(objekti): def gettex(mat_list, objekti, scene,export): coat3D = bpy.context.scene.coat3D - coa = bpy.context.scene.objects.active.coat3D + if(bpy.context.scene.render.engine == 'VRAY_RENDER' or bpy.context.scene.render.engine == 'VRAY_RENDER_PREVIEW'): vray = True @@ -73,6 +73,7 @@ def gettex(mat_list, objekti, scene,export): if(tex_slot.texture.type == 'IMAGE'): tex_slot.texture.image.reload() else: + coa = bpy.context.scene.objects.active.coat3D nimi = objname(coa.objectdir) if(coa.texturefolder): osoite = os.path.dirname(coa.texturefolder) + os.sep @@ -235,6 +236,7 @@ def gettex(mat_list, objekti, scene,export): objekti.active_material.texture_slots[index].uv_layer = objekti.data.uv_textures.active.name objekti.active_material.texture_slots[index].use_map_color_diffuse = False objekti.active_material.texture_slots[index].use_map_normal = True + objekti.active_material.texture_slots[index].normal_factor = -1 if(bring_spec == 1 and texcoat['specular']): |