Sfoglia il codice sorgente

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

Mr.doob 11 anni fa
parent
commit
007767bf44
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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: