Преглед на файлове

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