diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:22:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:15 +0400 |
commit | c67bd49e5607cc3db7446d4b12e1346fc9b2c83a (patch) | |
tree | bffbca1613b3ce8a5e356110c0d35b38dd6537cf /source/blender/editors/sculpt_paint/sculpt.c | |
parent | f2d25975b5e90f89744be733b81462493dc57977 (diff) |
Code cleanup: use 'const' for arrays (editors)
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index fcb2e6ad588..c8c644a546a 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -317,7 +317,7 @@ typedef struct { SculptUndoNode *unode; float (*coords)[3]; short (*normals)[3]; - float *vmasks; + const float *vmasks; /* Original coordinate, normal, and mask */ const float *co; @@ -1613,7 +1613,7 @@ static void do_multires_smooth_brush(Sculpt *sd, SculptSession *ss, PBVHNode *no for (y = 0; y < gridsize; ++y) { for (x = 0; x < gridsize; ++x) { float *co; - float *fno; + const float *fno; float *mask; int index; @@ -4247,14 +4247,14 @@ static void sculpt_stroke_modifiers_check(const bContext *C, Object *ob) typedef struct { SculptSession *ss; - float *ray_start, *ray_normal; + const float *ray_start, *ray_normal; int hit; float dist; int original; } SculptRaycastData; typedef struct { - float *ray_start, *ray_normal; + const float *ray_start, *ray_normal; int hit; float dist; float detail; @@ -5083,7 +5083,7 @@ static void sculpt_init_session(Scene *scene, Object *ob) int ED_sculpt_mask_layers_ensure(Object *ob, MultiresModifierData *mmd) { - float *paint_mask; + const float *paint_mask; Mesh *me = ob->data; int ret = 0; |