Blender Git Commit Log

Git Commits -> Revision bc0a7d3

Revision bc0a7d3 by Campbell Barton (master)
July 29, 2021, 01:09 (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: bc0a7d3fae5cfbe76ff84b76cb0ce48fe46adea5
Parent Commit: 2453dc1
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