diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-27 17:03:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-27 17:03:56 +0400 |
commit | 3b6cb504b199471d0a3c80b917d16b11827ae84e (patch) | |
tree | 7ee0132d19fa942e8f0183eb7da1d267f965ee64 /source/blender/editors/transform | |
parent | 46cea372669f25b691fd90dc792a1fee33e36887 (diff) |
minor warning fixes for clang-static-checker
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index 933d90ebbf2..f677e1ac6b4 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -1944,9 +1944,9 @@ static void applyGrid(TransInfo *t, float *val, int max_index, float fac[3], Gea int i; float asp[3] = {1.0f, 1.0f, 1.0f}; // TODO: Remove hard coded limit here (3) - if(max_index > 3) { + if(max_index > 2) { printf("applyGrid: invalid index %d, clamping\n", max_index); - max_index= 3; + max_index= 2; } // Early bailing out if no need to snap |