소스 검색

Merge pull request #6646 from tforgione/dev

Changed transparency to opacity
Ricardo Cabello 10 년 전
부모
커밋
0900d2b17f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      utils/converters/obj/convert_obj_three.py

+ 2 - 2
utils/converters/obj/convert_obj_three.py

@@ -443,9 +443,9 @@ def parse_mtl(fname):
             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])
+                    materials[identifier]["opacity"] = float(chunks[1])
                 else:
-                    materials[identifier]["transparency"] = float(chunks[1])
+                    materials[identifier]["opacity"] = 1.0 - float(chunks[1])
 
             # Optical density
             # Ni 1.0