소스 검색

Merge pull request #10530 from Sebasdc/dev

bump_scale should return a float
Mr.doob 8 년 전
부모
커밋
20682d1bd2
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
 
     """
-    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