Commit: 4c6cb337647ae70f599474b0eeb5be7a56fa0bc5
Author: Sergey Sharybin
Date:   Tue Jun 13 12:16:39 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB4c6cb337647ae70f599474b0eeb5be7a56fa0bc5

Draw manager: Don't check matrix to be non-NULL

It isn't a pointer, so the check was confusing and totally redundant.

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

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

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

diff --git a/source/blender/draw/intern/draw_manager.c 
b/source/blender/draw/intern/draw_manager.c
index db6c5697764..5cd9dffc1db 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1788,7 +1788,7 @@ static void draw_shgroup(DRWShadingGroup *shgroup, 
DRWState pass_state)
        }
        else {
                for (DRWCall *call = shgroup->calls.first; call; call = 
call->head.next) {
-                       bool neg_scale = call->obmat && 
is_negative_m4(call->obmat);
+                       bool neg_scale = is_negative_m4(call->obmat);
 
                        /* Negative scale objects */
                        if (neg_scale) {

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

Reply via email to