浏览代码

bump map export doesn't work correctly, can cause TypeError

railla 11 年之前
父节点
当前提交
a3dce6069e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py

+ 2 - 2
utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py

@@ -1965,8 +1965,8 @@ def extract_material_data(m, option_colors):
 
     if textures['bump']:
         material['mapBump'] = textures['bump']['texture'].image.name
-        if textures['normal']['slot'].use_map_normal:
-            material['mapBumpScale'] = textures['normal']['slot'].normal_factor
+        if textures['bump']['slot'].use_map_normal:
+            material['mapBumpScale'] = textures['bump']['slot'].normal_factor
 
     material['shading'] = m.THREE_materialType
     material['blending'] = m.THREE_blendingType