1
0
Fork 0

Bug-fix: for RMB-look / PUI interaction issue

When releasing the RMB over a PUI dialog, we no longer get stuck in
drag mode due to the buttons map getting out of state. This is slightly
ugly work-around, better fix to follow hopefully (needs better OSG
integration)
This commit is contained in:
James Turner 2018-05-23 14:16:11 +01:00
parent c8729be38f
commit 054c4bec0f

View file

@ -712,5 +712,10 @@ bool FGMouseInput::isActiveModePassThrough() const
}
mouse &m = d->mice[0];
return m.modes[m.current_mode].pass_through;
int mode = m.current_mode;
if (isRightDragToLookEnabled() && m.mouse_button_nodes[2]->getBoolValue()) {
mode = 3;
}
return m.modes[mode].pass_through;
}