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>2012-02-28 18:05:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-28 18:05:00 +0400
commited04c213745362fcab99cdda89343aca7cbb65e5 (patch)
treee1a6819df36bca9a884104882a2d146da1ba4c89 /source/blender/blenkernel/intern/sketch.c
parent150cedac5da7bfce5fdd7c621cb682d6f3e66c8b (diff)
code cleanup: use float vector size in function definitions, and const's where the values are unchanged.
Diffstat (limited to 'source/blender/blenkernel/intern/sketch.c')
-rw-r--r--source/blender/blenkernel/intern/sketch.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/sketch.c b/source/blender/blenkernel/intern/sketch.c
index faf382f9ffc..7134f5ac8c1 100644
--- a/source/blender/blenkernel/intern/sketch.c
+++ b/source/blender/blenkernel/intern/sketch.c
@@ -71,17 +71,15 @@ SK_Sketch* createSketch(void)
return sketch;
}
-void sk_initPoint(SK_Point *pt, SK_DrawData *dd, float *no)
+void sk_initPoint(SK_Point *pt, SK_DrawData *dd, const float no[3])
{
- if (no)
- {
+ if (no) {
normalize_v3_v3(pt->no, no);
}
- else
- {
- pt->no[0] = 0;
- pt->no[1] = 0;
- pt->no[2] = 1;
+ else {
+ pt->no[0] = 0.0f;
+ pt->no[1] = 0.0f;
+ pt->no[2] = 1.0f;
}
pt->p2d[0] = dd->mval[0];
pt->p2d[1] = dd->mval[1];