瀏覽代碼

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

alteredq 13 年之前
父節點
當前提交
32b40aa9bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/exporters/blender/2.63/scripts/addons/io_mesh_threejs/export_threejs.py

+ 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 }
 
                 else:
-                    if not textures['diffuse']:
+                    if not textures['diffuse'] and not slot.blend_type == 'MULTIPLY':
                         textures['diffuse'] = { "texture": texture, "slot": slot }
 
                     else: