Blender Git Commit Log

Git Commits -> Revision b4ee5b7

July 30, 2021, 14:56 (GMT)
PyAPI: support multi-dimensional arrays for bpy.props vector types

- Multi-dimensional boolean, int and float vector types are supported.
- A sequence of int's for the "size" is used to declare dimensions.
- Nested sequences are required for default arguments.

Now it's possible to define matrix properties, for e.g:

bpy.props.FloatVectorProperty(size=(4, 4), subtype='MATRIX')

Commit Details:

Full Hash: b4ee5b79340a0321f6e1650700a0a51ae931e0bc
Parent Commit: a645d99
Committed By: Fabian Schempp
Lines Changed: +433, -112

2 Modified Paths:

/source/blender/python/intern/bpy_props.c (+315, -110) (Diff)
/tests/python/bl_pyapi_prop_array.py (+118, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021