浏览代码

bump_scale should return a float

Sebastiaan de Coninck 8 年之前
父节点
当前提交
de2f3de0fa
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      utils/exporters/blender/addons/io_three/exporter/api/material.py

+ 4 - 1
utils/exporters/blender/addons/io_three/exporter/api/material.py

@@ -70,7 +70,10 @@ def bump_scale(material):
     :rtype: float
     :rtype: float
 
 
     """
     """
-    return normal_scale(material)
+    logger.debug("material.bump_scale(%s)", material)
+    for texture in _valid_textures(material):
+        if texture.use_map_normal:
+            return texture.normal_factor
 
 
 
 
 @_material
 @_material