diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 00:18:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 00:18:09 +0400 |
commit | 7ff77ed4ea7c6d8fb8b2e75320175b9cbd6ff20a (patch) | |
tree | fcdb22c3f2fa64e08a6cf8182b80405ab0e141f9 /source/blender/editors/object | |
parent | 402a9d59383d68bff72b3c9da3e53f3e5abcd578 (diff) |
code cleanup: use zero_v3
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_hook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_hook.c b/source/blender/editors/object/object_hook.c index 13294a3e240..6c0df7a2076 100644 --- a/source/blender/editors/object/object_hook.c +++ b/source/blender/editors/object/object_hook.c @@ -178,7 +178,7 @@ static int return_editlattice_indexar(Lattice *editlatt, int *tot, int **indexar *indexar= index= MEM_mallocN(4*totvert, "hook indexar"); *tot= totvert; nr= 0; - cent[0]= cent[1]= cent[2]= 0.0; + zero_v3(cent); a= editlatt->pntsu*editlatt->pntsv*editlatt->pntsw; bp= editlatt->def; @@ -251,7 +251,7 @@ static int return_editcurve_indexar(Object *obedit, int *tot, int **indexar, flo *indexar= index= MEM_mallocN(4*totvert, "hook indexar"); *tot= totvert; nr= 0; - cent[0]= cent[1]= cent[2]= 0.0; + zero_v3(cent); for(nu= editnurb->first; nu; nu= nu->next) { if(nu->type == CU_BEZIER) { |