Commit: b55077a5069710ef9d7974013e0885307e338678
Author: Clément Foucault
Date:   Mon Mar 5 16:11:49 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBb55077a5069710ef9d7974013e0885307e338678

DRW: Fix broken grid in ortho view.

===================================================================

M       source/blender/draw/intern/draw_manager_exec.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to