diff options
author | Thomas Dinges <blender@dingto.org> | 2014-02-14 16:56:23 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-02-14 16:56:23 +0400 |
commit | 76dd68351ccd3e874a1c550892c8a2fca7017766 (patch) | |
tree | 7119dd5b53e4cb21c1e9ba2f9aadd93803026d97 /intern | |
parent | 34d17463311846ac40966ce262c99d790d31f19e (diff) |
Cycles Standalone: Up/Down movement was inverted.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/app/cycles_standalone.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/app/cycles_standalone.cpp b/intern/cycles/app/cycles_standalone.cpp index 4635ae14efa..230833802b0 100644 --- a/intern/cycles/app/cycles_standalone.cpp +++ b/intern/cycles/app/cycles_standalone.cpp @@ -189,7 +189,7 @@ static void motion(int x, int y, int button) /* Translate */ if(button == 0) { - float3 translate = make_float3(x * 0.01f, y * 0.01f, 0.0f); + float3 translate = make_float3(x * 0.01f, -(y * 0.01f), 0.0f); matrix = matrix * transform_translate(translate); } @@ -198,7 +198,7 @@ static void motion(int x, int y, int button) float4 r1= make_float4(x * 0.1f, 0.0f, 1.0f, 0.0f); matrix = matrix * transform_rotate(r1.x * M_PI/180.0f, make_float3(r1.y, r1.z, r1.w)); - float4 r2 = make_float4(y*0.1, 1.0f, 0.0, 0.0f); + float4 r2 = make_float4(y * 0.1, 1.0f, 0.0f, 0.0f); matrix = matrix * transform_rotate(r2.x * M_PI/180.0f, make_float3(r2.y, r2.z, r2.w)); } |