diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-17 09:38:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-17 09:38:50 +0400 |
commit | 18cb2d208c80c9abf884e51c9e7c6f822c811190 (patch) | |
tree | 221cb7d02b64a24eb0725097ec630839736bfb40 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | 9ac713bdb577116f4af0ef5250efddf82f93cf69 (diff) |
code cleanup: use 'const float *' when getting the 3d cursor and not editing it.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 8fdca730674..c40312758fc 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -208,7 +208,7 @@ static int gpencil_project_check(tGPsdata *p) static void gp_get_3d_reference(tGPsdata *p, float vec[3]) { View3D *v3d = p->sa->spacedata.first; - float *fp = give_cursor(p->scene, v3d); + const float *fp = give_cursor(p->scene, v3d); /* the reference point used depends on the owner... */ #if 0 /* XXX: disabled for now, since we can't draw relative to the owner yet */ |