DRW: Override matrices: fix const correctness.

This commit is contained in:
Clément Foucault
2018-04-15 19:03:42 +02:00
parent 4b080ff18f
commit 728816dbdc
2 changed files with 2 additions and 2 deletions

View File

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

View File

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