aboutsummaryrefslogtreecommitdiffstats
path: root/src/v
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-12-01 23:22:26 +0100
committerMattias Andrée <maandree@operamail.com>2013-12-01 23:22:26 +0100
commit7b1b08cf4bad43ce9efe3cfbc4060ad6e448a1c2 (patch)
tree31773573f6b44c2c3d034c202dd5ae31e66b3ec2 /src/v
parentadd camera that does not affect rotation (diff)
downloadrotation3d-7b1b08cf4bad43ce9efe3cfbc4060ad6e448a1c2.tar.gz
rotation3d-7b1b08cf4bad43ce9efe3cfbc4060ad6e448a1c2.tar.bz2
rotation3d-7b1b08cf4bad43ce9efe3cfbc4060ad6e448a1c2.tar.xz
fix x key bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/v')
-rw-r--r--src/v/D3.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/v/D3.java b/src/v/D3.java
index 278f577..7292cd0 100644
--- a/src/v/D3.java
+++ b/src/v/D3.java
@@ -290,7 +290,7 @@ public class D3
case KeyEvent.VK_C: rg = -1; break;
case KeyEvent.VK_X:
- rotation_to_camera = true;
+ camera_to_rotation = true;
break;
case KeyEvent.VK_R:
@@ -308,7 +308,7 @@ public class D3
case KeyEvent.VK_Q: srxy = -v; break;
case KeyEvent.VK_X:
- camera_to_rotation = true;
+ rotation_to_camera = true;
break;
case KeyEvent.VK_R:
@@ -338,7 +338,7 @@ public class D3
if (camera_to_rotation)
{
- transform(on_inv(Pm));
+ transform(Pm);
camera_to_rotation = false;
sreset = true;
}