diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
commit | fe8d5b81b09462d2344a50b32bfd2d8df5c6d886 (patch) | |
tree | 6f1df9a8387a95c7fca3b28ecf168f1cb06214ea /source/blender/blenkernel/intern/shrinkwrap.c | |
parent | de8e066a1ca29fe58295ee6b12b735d023528681 (diff) |
use c90 compatible static initializers.
Diffstat (limited to 'source/blender/blenkernel/intern/shrinkwrap.c')
-rw-r--r-- | source/blender/blenkernel/intern/shrinkwrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/shrinkwrap.c b/source/blender/blenkernel/intern/shrinkwrap.c index 4746341876f..a6daaf36ff6 100644 --- a/source/blender/blenkernel/intern/shrinkwrap.c +++ b/source/blender/blenkernel/intern/shrinkwrap.c @@ -391,8 +391,8 @@ static void shrinkwrap_calc_normal_projection(ShrinkwrapCalcData *calc, struct S //Project over negative direction of axis if(use_normal & MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR) { - float inv_no[3] = { -tmp_no[0], -tmp_no[1], -tmp_no[2] }; - + float inv_no[3]; + negate_v3_v3(inv_no, tmp_no); if(auxData.tree) normal_projection_project_vertex(0, tmp_co, inv_no, &local2aux, auxData.tree, &hit, auxData.raycast_callback, &auxData); |