Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index f9af77b04bf..b0b9a4fa48d 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -669,7 +669,7 @@ void BKE_material_clear_id(struct ID *id, bool update_data)
Material *give_current_material(Object *ob, short act)
{
Material ***matarar, *ma;
- short *totcolp;
+ const short *totcolp;
if (ob == NULL) return NULL;
@@ -774,7 +774,7 @@ void test_object_materials(Main *bmain, ID *id)
{
/* make the ob mat-array same size as 'ob->data' mat-array */
Object *ob;
- short *totcol;
+ const short *totcol;
if (id == NULL || (totcol = give_totcolp_id(id)) == NULL) {
return;