diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_float4x4.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float4x4.hh b/source/blender/blenlib/BLI_float4x4.hh index a3eec075027..f5ba91bc12c 100644 --- a/source/blender/blenlib/BLI_float4x4.hh +++ b/source/blender/blenlib/BLI_float4x4.hh @@ -45,6 +45,13 @@ struct float4x4 { return mat; } + static float4x4 identity() + { + float4x4 mat; + unit_m4(mat.values); + return mat; + } + operator float *() { return &values[0][0]; |