Commit: d4795cc5d1b0c11c2844603ec9d2a3d64611d689
Author: Clément Foucault
Date:   Thu Feb 22 19:45:20 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBd4795cc5d1b0c11c2844603ec9d2a3d64611d689

DRW: Fix use of uninitialized call->obmat.

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

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 5299fa04e4e..a8b59dbc197 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1031,6 +1031,9 @@ void DRW_shgroup_call_add(DRWShadingGroup *shgroup, 
Gwn_Batch *geom, float (*obm
        if (obmat != NULL) {
                copy_m4_m4(call->obmat, obmat);
        }
+       else {
+               unit_m4(call->obmat);
+       }
 
        call->geometry = geom;
        call->ob_data = NULL;
@@ -1075,6 +1078,9 @@ void DRW_shgroup_call_generate_add(
        if (obmat != NULL) {
                copy_m4_m4(call->obmat, obmat);
        }
+       else {
+               unit_m4(call->obmat);
+       }
 
        call->geometry_fn = geometry_fn;
        call->user_data = user_data;

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

Reply via email to