diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-12-01 23:22:26 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-12-01 23:22:26 +0100 |
commit | 7b1b08cf4bad43ce9efe3cfbc4060ad6e448a1c2 (patch) | |
tree | 31773573f6b44c2c3d034c202dd5ae31e66b3ec2 /src | |
parent | add camera that does not affect rotation (diff) | |
download | rotation3d-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')
-rw-r--r-- | src/v/D3.java | 6 |
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; } |