(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 22 Oct 2011 03:16:25 +0000 (11:16 +0800)
committerAsh Tyndall <[email protected]>
Sat, 22 Oct 2011 03:16:25 +0000 (11:16 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 6f74153..8d875b0 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -329,8 +329,8 @@ void motion(int x, int y) {
     case STATE_OBJECT_ROTATION_TEXTURE_SCALE:\r
       if ( buttonSelected == GLUT_LEFT_BUTTON ) {\r
         // w: rotate on width, h: rotate on h\r
-        sceneObjs[curObject].rotation.x += diffx * rotateFactor;\r
-\r
+        sceneObjs[curObject].rotation.x += diffy * rotateFactor;\r
+        sceneObjs[curObject].rotation.y += diffx * rotateFactor;\r
       } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
         // w: rotate on height, h: texture scale\r
         \r

UCC git Repository :: git.ucc.asn.au