changes for materials to treat them as shorts not int/chars (since they are stored...
[blender-staging.git] / source / blender / editors / space_view3d / drawmesh.c
index 37abf01b0da10bdbabe4d32546d4b83db39d06fc..b6e76885719b0a95475159189044b205d1a3d8f5 100644 (file)
@@ -557,7 +557,7 @@ static void draw_mesh_text(Scene *scene, Object *ob, int glsl)
        ddm = mesh_get_derived_deform(scene, ob, CD_MASK_BAREMESH);
 
        for(a=0, mf=mface; a<totface; a++, tface++, mf++) {
-               int matnr= mf->mat_nr;
+               short matnr= mf->mat_nr;
                int mf_smooth= mf->flag & ME_SMOOTH;
                Material *mat = me->mat[matnr];
                int mode= mat->game.flag;