Merge pull request #3877 from olsoneric/olsoneric-issue_2339_py_cant_load_obj

Use POINTER(char) for binary data. For pyassimp issue #2339: Can't load OBJ
This commit is contained in:
Kim Kulling
2021-05-04 21:08:35 +02:00
committed by GitHub

View File

@@ -1,6 +1,6 @@
#-*- coding: utf-8 -*-
from ctypes import POINTER, c_void_p, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte, c_size_t, c_uint32
from ctypes import POINTER, c_void_p, c_uint, c_char, c_float, Structure, c_double, c_ubyte, c_size_t, c_uint32
class Vector2D(Structure):
@@ -1121,7 +1121,7 @@ class Scene(Structure):
("mMetadata", POINTER(Metadata)),
# Internal data, do not touch
("mPrivate", c_char_p),
("mPrivate", POINTER(c_char)),
]
assimp_structs_as_tuple = (Matrix4x4,