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)
This commit is contained in:
Mitchell Stokes 2014-07-14 18:36:27 -07:00
parent 1bf87fa26c
commit dbc79e7aba

@ -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]);