소스 검색

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: