FloatVectorProperty, subtype=MATRIX - can't register. Is it bug?

When I try register floatVector propery blender gives error - could not register.
Is is bug:

import bpy
import mathutils


bpy.types.Scene.blabla = bpy.props.FloatVectorProperty(subtype='MATRIX', default=mathutils.Matrix.Identity(4))

From what read it should work… https://www.blender.org/api/blender_python_api_2_75_release/bpy.props.html

A flat sequence of default floats is required:

import bpyfrom mathutils import Matrix


bpy.types.Scene.blabla = bpy.props.FloatVectorProperty(
    size=16,
    subtype='MATRIX',
    default=[b for a in Matrix.Identity(4) for b in a]
)

Or:

import bpy
from mathutils import Matrix
from itertools import chain


bpy.types.Scene.blabla = bpy.props.FloatVectorProperty(
    size=16,
    subtype='MATRIX',
    default=chain.from_iterable(Matrix.Identity(4))
)

Or a slightly hacky:

[int(i==j) for i in range(4) for j in range(4)]

… which could be simplified to:

[0 if i%5 else 1 for i in range(16)]

Or a plain:

(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)

Great. I will share my addon when it is finished for all your help :slight_smile: