Browse Source

Added heuristics for distinguishing between diffuse and lightmap textures to Blender exporter.

alteredq 13 years ago
parent
commit
32b40aa9bf

+ 1 - 1
utils/exporters/blender/2.63/scripts/addons/io_mesh_threejs/export_threejs.py

@@ -1890,7 +1890,7 @@ def guess_material_textures(material):
                     textures['specular'] = { "texture": texture, "slot": slot }
                     textures['specular'] = { "texture": texture, "slot": slot }
 
 
                 else:
                 else:
-                    if not textures['diffuse']:
+                    if not textures['diffuse'] and not slot.blend_type == 'MULTIPLY':
                         textures['diffuse'] = { "texture": texture, "slot": slot }
                         textures['diffuse'] = { "texture": texture, "slot": slot }
 
 
                     else:
                     else: