Explorar o código

Fixed a bug in the bugfix -.-

Faule Socke %!s(int64=12) %!d(string=hai) anos
pai
achega
43ff04a53b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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):
 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))
         return dict.__getitem__(self, (key, semantic))
 
 
     def keys(self):
     def keys(self):