forked from bartvdbraak/blender
Cycles Standalone: Up/Down movement was inverted.
This commit is contained in:
parent
34d1746331
commit
76dd68351c
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user