Browse Source

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

Mr.doob 11 years ago
parent
commit
007767bf44
1 changed files with 1 additions and 0 deletions
  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: