diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-05 18:11:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-06 18:45:23 +0300 |
commit | b55077a5069710ef9d7974013e0885307e338678 (patch) | |
tree | a0917b0bd4b9ef67008678857383b092b9b07df7 | |
parent | aa02c099f97ef483ce4a79c61899929d008072f3 (diff) |
DRW: Fix broken grid in ortho view.
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 45798c5b793..7b97709d51b 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -563,7 +563,7 @@ static void draw_matrices_model_prepare(DRWCallState *st) if (st->matflag & DRW_CALL_MODELVIEWPROJECTION) { mul_m4_m4m4(st->modelviewprojection, DST.view_data.matstate.mat[DRW_MAT_PERS], st->model); } - if (st->matflag & DRW_CALL_NORMALVIEW) { + if (st->matflag & (DRW_CALL_NORMALVIEW | DRW_CALL_EYEVEC)) { copy_m3_m4(st->normalview, st->modelview); invert_m3(st->normalview); transpose_m3(st->normalview); |