1058a93994571313fa581d2e3ee71859101307d6
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
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
