use vector size and const args where possible (no functional change)
This commit is contained in:
@@ -89,7 +89,7 @@ void end_render_materials(struct Main *);
|
||||
|
||||
int material_in_material(struct Material *parmat, struct Material *mat);
|
||||
|
||||
void ramp_blend(int type, float *r, float *g, float *b, float fac, float *col);
|
||||
void ramp_blend(int type, float *r, float *g, float *b, float fac, const float col[3]);
|
||||
|
||||
/* copy/paste */
|
||||
void clear_matcopybuf(void);
|
||||
|
||||
@@ -1122,7 +1122,7 @@ int object_remove_material_slot(Object *ob)
|
||||
|
||||
/* r g b = current value, col = new value, fac==0 is no change */
|
||||
/* if g==NULL, it only does r channel */
|
||||
void ramp_blend(int type, float *r, float *g, float *b, float fac, float *col)
|
||||
void ramp_blend(int type, float *r, float *g, float *b, float fac, const float col[3])
|
||||
{
|
||||
float tmp, facm= 1.0f-fac;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user