Browse Source

Merge branch 'patch-1' of https://github.com/brettdonohoo/three.js into dev

Mr.doob 11 năm trước cách đây
mục cha
commit
007767bf44
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      utils/converters/obj/convert_obj_three.py

+ 1 - 0
utils/converters/obj/convert_obj_three.py

@@ -399,6 +399,7 @@ def parse_mtl(fname):
             # Transparency
             # Tr 0.9 or d 0.9
             if (chunks[0] == "Tr" or chunks[0] == "d") and len(chunks) == 2:
+                materials[identifier]["transparent"] = True
                 if TRANSPARENCY == "invert":
                     materials[identifier]["transparency"] = 1.0 - float(chunks[1])
                 else: