From 76dd68351ccd3e874a1c550892c8a2fca7017766 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Fri, 14 Feb 2014 13:56:23 +0100 Subject: [PATCH] Cycles Standalone: Up/Down movement was inverted. --- intern/cycles/app/cycles_standalone.cpp | 4 ++-- 1 file 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)); }