|
@@ -160,7 +160,7 @@ def _init(self):
|
|
Python magic to add the _init() function to all C struct classes.
|
|
Python magic to add the _init() function to all C struct classes.
|
|
"""
|
|
"""
|
|
for struct in dir(structs):
|
|
for struct in dir(structs):
|
|
- if not (struct.startswith('_') or struct.startswith('c_') or struct == "Structure"):
|
|
|
|
|
|
+ if not (struct.startswith('_') or struct.startswith('c_') or struct == "Structure" or struct == "POINTER"):
|
|
setattr(getattr(structs, struct), '_init', _init)
|
|
setattr(getattr(structs, struct), '_init', _init)
|
|
|
|
|
|
|
|
|
|
@@ -268,4 +268,4 @@ def aiDecomposeMatrix(matrix):
|
|
|
|
|
|
from ctypes import byref, pointer
|
|
from ctypes import byref, pointer
|
|
_assimp_lib.dll.aiDecomposeMatrix(pointer(matrix), byref(scaling), byref(rotation), byref(position))
|
|
_assimp_lib.dll.aiDecomposeMatrix(pointer(matrix), byref(scaling), byref(rotation), byref(position))
|
|
- return scaling._init(), rotation._init(), position._init()
|
|
|
|
|
|
+ return scaling._init(), rotation._init(), position._init()
|