Commit: 728816dbdc1a6e3c094b1bbfddab4f1af5bb955a
Author: Clément Foucault
Date:   Sun Apr 15 19:03:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB728816dbdc1a6e3c094b1bbfddab4f1af5bb955a

DRW: Override matrices: fix const correctness.

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

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

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

diff --git a/source/blender/draw/intern/DRW_render.h 
b/source/blender/draw/intern/DRW_render.h
index 60e855108f9..66ca8971a46 100644
--- a/source/blender/draw/intern/DRW_render.h
+++ b/source/blender/draw/intern/DRW_render.h
@@ -404,7 +404,7 @@ typedef struct DRWMatrixState {
 void DRW_viewport_init(const bContext *C);
 void DRW_viewport_matrix_get(float mat[4][4], DRWViewportMatrixType type);
 void DRW_viewport_matrix_get_all(DRWMatrixState *state);
-void DRW_viewport_matrix_override_set(float mat[4][4], DRWViewportMatrixType 
type);
+void DRW_viewport_matrix_override_set(const float mat[4][4], 
DRWViewportMatrixType type);
 void DRW_viewport_matrix_override_set_all(DRWMatrixState *state);
 void DRW_viewport_matrix_override_unset(DRWViewportMatrixType type);
 void DRW_viewport_matrix_override_unset_all(void);
diff --git a/source/blender/draw/intern/draw_manager.c 
b/source/blender/draw/intern/draw_manager.c
index 8090bcb28ca..6ba1225b687 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -517,7 +517,7 @@ void DRW_viewport_matrix_get_all(DRWMatrixState *state)
        memcpy(state, DST.view_data.matstate.mat, sizeof(DRWMatrixState));
 }
 
-void DRW_viewport_matrix_override_set(float mat[4][4], DRWViewportMatrixType 
type)
+void DRW_viewport_matrix_override_set(const float mat[4][4], 
DRWViewportMatrixType type)
 {
        BLI_assert(type < DRW_MAT_COUNT);
        copy_m4_m4(DST.view_data.matstate.mat[type], mat);

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

Reply via email to