diff --git a/src/Gui/GestureNavigationStyle.cpp b/src/Gui/GestureNavigationStyle.cpp index f2aea8b56b..96ccecaca3 100644 --- a/src/Gui/GestureNavigationStyle.cpp +++ b/src/Gui/GestureNavigationStyle.cpp @@ -293,6 +293,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) if(!press){ SbBool ret = NavigationStyle::lookAtPoint(event->getPosition()); if(!ret){ + this->interactiveCountDec(); Base::Console().Warning( "No object under cursor! Can't set new center of rotation.\n"); } @@ -412,6 +413,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) if(press){ SbBool ret = NavigationStyle::lookAtPoint(event->getPosition()); if(!ret){ + this->interactiveCountDec(); Base::Console().Warning( "No object under cursor! Can't set new center of rotation.\n"); } diff --git a/src/Gui/MayaGestureNavigationStyle.cpp b/src/Gui/MayaGestureNavigationStyle.cpp index 0fd6178c12..96fa222cac 100644 --- a/src/Gui/MayaGestureNavigationStyle.cpp +++ b/src/Gui/MayaGestureNavigationStyle.cpp @@ -299,6 +299,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) if(!press){ SbBool ret = NavigationStyle::lookAtPoint(event->getPosition()); if(!ret){ + this->interactiveCountDec(); Base::Console().Warning( "No object under cursor! Can't set new center of rotation.\n"); } @@ -416,6 +417,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) // if not PANNING then look at point SbBool ret = NavigationStyle::lookAtPoint(event->getPosition()); if(!ret){ + this->interactiveCountDec(); Base::Console().Warning( "No object under cursor! Can't set new center of rotation.\n"); }