diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2014-07-15 05:36:27 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2014-07-15 05:36:27 +0400 |
commit | dbc79e7aba4881cd3e61ad60433ef834965b6799 (patch) | |
tree | b1bb63c11e039f9cc3c0e9fa2c0fcb3bf6fba9fc | |
parent | 1bf87fa26c6763ef282ec39b07b678723a7f389b (diff) |
Fix T41074: Several Mouse Look actuators not working well together when reset button are set in one or several of them
Fix provided by lordloki (Jorge Bernal)
-rw-r--r-- | source/gameengine/Ketsji/KX_MouseActuator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_MouseActuator.cpp b/source/gameengine/Ketsji/KX_MouseActuator.cpp index 3d74bd7c98a..aae5d18189a 100644 --- a/source/gameengine/Ketsji/KX_MouseActuator.cpp +++ b/source/gameengine/Ketsji/KX_MouseActuator.cpp @@ -208,6 +208,9 @@ bool KX_MouseActuator::Update() parent->ApplyRotation(rotation, m_local_x); } } + else { + setposition[0] = 0.5; + } //Calculating Y axis. if (m_use_axis_y) { @@ -266,6 +269,9 @@ bool KX_MouseActuator::Update() parent->ApplyRotation(rotation, m_local_y); } } + else { + setposition[1] = 0.5; + } setMousePosition(setposition[0], setposition[1]); |