From dbc79e7aba4881cd3e61ad60433ef834965b6799 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Mon, 14 Jul 2014 18:36:27 -0700 Subject: [PATCH] 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) --- source/gameengine/Ketsji/KX_MouseActuator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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]);