bdk-blender/source/blender/python
Thomas Barlow 1058a93994 Fix #106696: Invalid flag combinations used in #PyObject_GetBuffer
Code using #PyObject_GetBuffer was combining the `PyBUF_FORMAT` and
`PyBUF_SIMPLE` flags, but the documentation specifies that
`PyBUF_FORMAT` can be |'d to any of the flags except `PyBUF_SIMPLE`
because the latter already implies format `B` (unsigned bytes).

The flags in such cases have been replaced with
`PyBUF_ND | PyBUF_FORMAT`, which has the additional requirement that the
buffer must provide it's `shape` field.

This fixes `memoryview` objects raising a `BufferError` when requested,
due to the invalid combination of flags making them be considered
invalid buffers when they would otherwise be valid.

Ref: !106697
2023-11-09 18:43:05 +11:00
..
bmesh Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
generic Fix #106696: Invalid flag combinations used in #PyObject_GetBuffer 2023-11-09 18:43:05 +11:00
gpu Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
intern Fix #106696: Invalid flag combinations used in #PyObject_GetBuffer 2023-11-09 18:43:05 +11:00
mathutils Cleanup: Move BKE_object.hh to C++ 2023-10-09 23:41:53 +02:00
BPY_extern_clog.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
BPY_extern_python.h PyAPI: free internal Python data using sys.exit(..) 2023-09-19 15:50:41 +10:00
BPY_extern_run.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
BPY_extern.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
CMakeLists.txt License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
rna_dump.py License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00