diff --git a/src/Gui/BlenderNavigationStyle.cpp b/src/Gui/BlenderNavigationStyle.cpp index c35566c64..5a2eb76c5 100644 --- a/src/Gui/BlenderNavigationStyle.cpp +++ b/src/Gui/BlenderNavigationStyle.cpp @@ -247,10 +247,7 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev) float dci = (float)QApplication::doubleClickInterval()/1000.0f; // is it just a middle click? if (tmp.getValue() < dci && !this->lockrecenter) { - if (!this->seekToPoint(pos)) { - panToCenter(panningplane, posn); - this->interactiveCountDec(); - } + panToCenter(panningplane, posn); processed = TRUE; } } diff --git a/src/Gui/CADNavigationStyle.cpp b/src/Gui/CADNavigationStyle.cpp index c85c2f743..c75481f22 100644 --- a/src/Gui/CADNavigationStyle.cpp +++ b/src/Gui/CADNavigationStyle.cpp @@ -189,10 +189,7 @@ SbBool CADNavigationStyle::processSoEvent(const SoEvent * const ev) float dci = (float)QApplication::doubleClickInterval()/1000.0f; // is it just a left click? if (tmp.getValue() < dci && !this->lockrecenter) { - if (!this->seekToPoint(pos)) { - panToCenter(panningplane, posn); - this->interactiveCountDec(); - } + panToCenter(panningplane, posn); processed = TRUE; } } @@ -276,10 +273,7 @@ SbBool CADNavigationStyle::processSoEvent(const SoEvent * const ev) float dci = (float)QApplication::doubleClickInterval()/1000.0f; // is it just a middle click? if (tmp.getValue() < dci && !this->lockrecenter) { - if (!this->seekToPoint(pos)) { - panToCenter(panningplane, posn); - this->interactiveCountDec(); - } + panToCenter(panningplane, posn); processed = TRUE; } } diff --git a/src/Gui/InventorNavigationStyle.cpp b/src/Gui/InventorNavigationStyle.cpp index 943312cec..9c40edc4e 100644 --- a/src/Gui/InventorNavigationStyle.cpp +++ b/src/Gui/InventorNavigationStyle.cpp @@ -182,10 +182,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) float dci = (float)QApplication::doubleClickInterval()/1000.0f; // is it just a left click? if (tmp.getValue() < dci && !this->lockrecenter) { - if (!this->seekToPoint(pos)) { - panToCenter(panningplane, posn); - this->interactiveCountDec(); - } + panToCenter(panningplane, posn); processed = TRUE; } } @@ -193,19 +190,22 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) newmode = NavigationStyle::SEEK_MODE; this->seekToPoint(pos); // implicitly calls interactiveCountInc() processed = TRUE; + this->lockrecenter = TRUE; } else if (press && (this->currentmode == NavigationStyle::IDLE)) { this->setViewing(true); processed = TRUE; + this->lockrecenter = TRUE; } else if (!press && (this->currentmode == NavigationStyle::DRAGGING)) { this->setViewing(false); processed = TRUE; + this->lockrecenter = TRUE; } else if (viewer->isEditing() && (this->currentmode == NavigationStyle::SPINNING)) { processed = TRUE; + this->lockrecenter = TRUE; } - this->lockrecenter = TRUE; break; case SoMouseButtonEvent::BUTTON2: // If we are in edit mode then simply ignore the RMB events @@ -237,10 +237,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) float dci = (float)QApplication::doubleClickInterval()/1000.0f; // is it just a middle click? if (tmp.getValue() < dci && !this->lockrecenter) { - if (!this->seekToPoint(pos)) { - panToCenter(panningplane, posn); - this->interactiveCountDec(); - } + panToCenter(panningplane, posn); processed = TRUE; } }