Do not assume there is a mouse mode with index 3.
This commit is contained in:
parent
d836126c75
commit
90f197fbc4
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ void FGMouseInput::processMotion(int x, int y, const osgGA::GUIEventAdapter* ea)
|
|||
mouse &m = d->mice[0];
|
||||
int modeIndex = m.current_mode;
|
||||
// are we in spring-loaded look mode?
|
||||
if (!d->rightClickModeCycle) {
|
||||
if (!d->rightClickModeCycle && m.nModes > 3) {
|
||||
if (m.mouse_button_nodes[2]->getBoolValue()) {
|
||||
// right mouse is down, force look mode
|
||||
modeIndex = 3;
|
||||
|
|
Loading…
Add table
Reference in a new issue