FlyByCamera modified to check if its mappings exist

before unregistering them.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9165 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 13 years ago
parent e7f0a5ad91
commit c084f0a025
  1. 2
      engine/src/core/com/jme3/input/FlyByCamera.java

@ -225,8 +225,10 @@ public class FlyByCamera implements AnalogListener, ActionListener {
} }
for (String s : mappings) { for (String s : mappings) {
if (inputManager.hasMapping(s)) {
inputManager.deleteMapping( s ); inputManager.deleteMapping( s );
} }
}
inputManager.removeListener(this); inputManager.removeListener(this);
inputManager.setCursorVisible(!dragToRotate); inputManager.setCursorVisible(!dragToRotate);

Loading…
Cancel
Save