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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-26 18:22:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-26 18:25:15 +0400
commitc67bd49e5607cc3db7446d4b12e1346fc9b2c83a (patch)
treebffbca1613b3ce8a5e356110c0d35b38dd6537cf /source/blender/editors/space_view3d/drawobject.c
parentf2d25975b5e90f89744be733b81462493dc57977 (diff)
Code cleanup: use 'const' for arrays (editors)
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 5acccb68bfb..6e8e1ffe114 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -157,8 +157,8 @@ typedef struct drawDMFacesSel_userData {
BMesh *bm;
BMFace *efa_act;
- int *orig_index_mf_to_mpoly;
- int *orig_index_mp_to_orig;
+ const int *orig_index_mf_to_mpoly;
+ const int *orig_index_mp_to_orig;
} drawDMFacesSel_userData;
typedef struct drawDMNormal_userData {
@@ -1883,7 +1883,7 @@ static void drawspeaker(Scene *UNUSED(scene), View3D *UNUSED(v3d), RegionView3D
static void lattice_draw_verts(Lattice *lt, DispList *dl, BPoint *actbp, short sel)
{
BPoint *bp = lt->def;
- float *co = dl ? dl->verts : NULL;
+ const float *co = dl ? dl->verts : NULL;
int u, v, w;
const int color = sel ? TH_VERTEX_SELECT : TH_VERTEX;
@@ -3863,7 +3863,7 @@ static bool drawDispListwire(ListBase *dlbase)
{
DispList *dl;
int parts, nr;
- float *data;
+ const float *data;
if (dlbase == NULL) return 1;
@@ -3957,8 +3957,8 @@ static void drawDispListsolid(ListBase *lb, Object *ob, const short dflag,
{
DispList *dl;
GPUVertexAttribs gattribs;
- float *data;
- float *ndata;
+ const float *data;
+ const float *ndata;
if (lb == NULL) return;
@@ -5428,7 +5428,7 @@ static void ob_draw_RE_motion(float com[3], float rotscale[3][3], float itw, flo
static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles)
{
BezTriple *bezt;
- float *fp;
+ const float *fp;
int a;
if (nu->hide || hide_handles) return;
@@ -5488,7 +5488,7 @@ static void drawhandlesN(Nurb *nu, const char sel, const bool hide_handles)
static void drawhandlesN_active(Nurb *nu)
{
BezTriple *bezt;
- float *fp;
+ const float *fp;
int a;
if (nu->hide) return;