[Bf-blender-cvs] [76dd683] master: Cycles Standalone: Up/Down movement was inverted.
Thomas Dinges
noreply at git.blender.org
Fri Feb 14 13:57:00 CET 2014
Commit: 76dd68351ccd3e874a1c550892c8a2fca7017766
Author: Thomas Dinges
Date: Fri Feb 14 13:56:23 2014 +0100
https://developer.blender.org/rB76dd68351ccd3e874a1c550892c8a2fca7017766
Cycles Standalone: Up/Down movement was inverted.
===================================================================
M intern/cycles/app/cycles_standalone.cpp
===================================================================
diff --git a/intern/cycles/app/cycles_standalone.cpp b/intern/cycles/app/cycles_standalone.cpp
index 4635ae1..2308338 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));
}
More information about the Bf-blender-cvs
mailing list