소스 검색

Fixed a bug in the bugfix -.-

Faule Socke 12 년 전
부모
커밋
43ff04a53b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      port/PyAssimp/pyassimp/core.py

+ 5 - 1
port/PyAssimp/pyassimp/core.py

@@ -338,7 +338,11 @@ def _finalize_mesh(mesh, target):
 
 
 class PropertyGetter(dict):
-    def __getitem__(self, key, semantic = 0):
+    def __getitem__(self, key):
+        semantic = 0
+        if isinstance(key, tuple):
+            key, semantic = key
+
         return dict.__getitem__(self, (key, semantic))
 
     def keys(self):