From c084f0a02586e3ba4cce80e84a3d91afcf916633 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Fri, 17 Feb 2012 03:57:23 +0000 Subject: [PATCH] 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 --- engine/src/core/com/jme3/input/FlyByCamera.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/input/FlyByCamera.java b/engine/src/core/com/jme3/input/FlyByCamera.java index aa87172a7..7b439efe6 100644 --- a/engine/src/core/com/jme3/input/FlyByCamera.java +++ b/engine/src/core/com/jme3/input/FlyByCamera.java @@ -225,7 +225,9 @@ public class FlyByCamera implements AnalogListener, ActionListener { } for (String s : mappings) { - inputManager.deleteMapping( s ); + if (inputManager.hasMapping(s)) { + inputManager.deleteMapping( s ); + } } inputManager.removeListener(this);