forked from bartvdbraak/blender
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
@ -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
Block a user