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
pull/3834/head^2
Kim Kulling 2021-05-04 21:08:35 +02:00 committed by GitHub
commit be85eac703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#-*- coding: utf-8 -*- #-*- 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): class Vector2D(Structure):
@ -1121,7 +1121,7 @@ class Scene(Structure):
("mMetadata", POINTER(Metadata)), ("mMetadata", POINTER(Metadata)),
# Internal data, do not touch # Internal data, do not touch
("mPrivate", c_char_p), ("mPrivate", POINTER(c_char)),
] ]
assimp_structs_as_tuple = (Matrix4x4, assimp_structs_as_tuple = (Matrix4x4,