Selaa lähdekoodia

Fixed pyassimp core.py

Rodrigo Benenson 12 vuotta sitten
vanhempi
commit
c883967735
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      port/PyAssimp/pyassimp/core.py

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

@@ -293,11 +293,9 @@ def release(scene):
 
 def _finalize_texture(tex, target):
     setattr(target, "achformathint", tex.achFormatHint)
-    data = numpy.array([make_tuple(getattr(tex, pcData)[i]) for i in range(tex.mWidth * tex.mHeight)])
+    data = numpy.array([make_tuple(getattr(tex, "pcData")[i]) for i in range(tex.mWidth * tex.mHeight)])
     setattr(target, "data", data)
 
-
-
 def _finalize_mesh(mesh, target):
     """ Building of meshes is a bit specific.