mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fix regression that stopped buffer protocol from working
This commit is contained in:
parent
29ea65bb3f
commit
33c6e21352
@ -1740,7 +1740,8 @@ is_Py_buffer(CPPType *type) {
|
||||
|
||||
case CPPDeclaration::ST_extension:
|
||||
case CPPDeclaration::ST_struct:
|
||||
return (type->get_local_name(&parser) == "Py_buffer");
|
||||
return (type->get_local_name(&parser) == "Py_buffer" ||
|
||||
type->get_local_name(&parser) == "bufferinfo");
|
||||
|
||||
case CPPDeclaration::ST_typedef:
|
||||
return is_Py_buffer(type->as_typedef_type()->_type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user