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:
parent
1bf87fa26c
commit
dbc79e7aba
Notes:
blender-bot
2023-02-14 10:20:08 +01:00
Referenced by issue #41094, Ping pong action works wrong when GLSL mode and Sun buffer shadow are enabled in BGE. Referenced by issue #41074, Several Mouse Look actuators not working well together when reset button are set in one or several of them
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue