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:
parent
c8729be38f
commit
054c4bec0f
1 changed files with 6 additions and 1 deletions
|
@ -712,5 +712,10 @@ bool FGMouseInput::isActiveModePassThrough() const
|
||||||
}
|
}
|
||||||
|
|
||||||
mouse &m = d->mice[0];
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue