From 3f3a50c529bc7bf7b51939205c43606e8392cd49 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 11:16:25 +0800 Subject: [PATCH] --- scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene.c b/scene.c index 6f74153..8d875b0 100644 --- a/scene.c +++ b/scene.c @@ -329,8 +329,8 @@ void motion(int x, int y) { case STATE_OBJECT_ROTATION_TEXTURE_SCALE: if ( buttonSelected == GLUT_LEFT_BUTTON ) { // w: rotate on width, h: rotate on h - sceneObjs[curObject].rotation.x += diffx * rotateFactor; - + sceneObjs[curObject].rotation.x += diffy * rotateFactor; + sceneObjs[curObject].rotation.y += diffx * rotateFactor; } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: rotate on height, h: texture scale -- 2.20.1