diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-19 09:17:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-19 09:17:55 +0400 |
commit | e43c80620c5568171a6c2b4e0d66686ef9d540d0 (patch) | |
tree | 78c7d710d086fdc4a8dbe7fc59b7d0461cdef3f3 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | 02b28e9162784933f470c5381b290f2582706a51 (diff) |
fix for incorrect check to find largest axis (was checking Y twice, not Z).
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 4f46a746b9e..c73d8e14f05 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1584,7 +1584,7 @@ static void draw_bgpic(Scene *scene, ARegion *ar, View3D *v3d) /* calc window coord */ initgrabz(rv3d, 0.0, 0.0, 0.0); ED_view3d_win_to_delta(ar, mval_f, vec); - fac= MAX3( fabs(vec[0]), fabs(vec[1]), fabs(vec[1]) ); + fac= maxf(fabsf(vec[0]), maxf(fabsf(vec[1]), fabsf(vec[2]))); /* largest abs axis */ fac= 1.0f/fac; asp= ( (float)ibuf->y)/(float)ibuf->x; |