diff options
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index bbe3787dada..11c717a5373 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2224,6 +2224,9 @@ void DRW_viewport_matrix_get(float mat[4][4], DRWViewportMatrixType type) case DRW_MAT_WIN: copy_m4_m4(mat, rv3d->winmat); break; + case DRW_MAT_WININV: + invert_m4_m4(mat, rv3d->winmat); + break; default: BLI_assert(!"Matrix type invalid"); break; |