From fddfc7bdcdbc9a0a91944da1d6feea5d10c09abd Mon Sep 17 00:00:00 2001 From: Adrian Date: Tue, 28 Dec 2021 22:50:47 -0300 Subject: [PATCH] Mouse navigation: change unnecesary warnings to messages sent when trying to set rotation center without an object under the cursor and can be annoying if report view is set to show with warnings. --- src/Gui/GestureNavigationStyle.cpp | 2 +- src/Gui/MayaGestureNavigationStyle.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/GestureNavigationStyle.cpp b/src/Gui/GestureNavigationStyle.cpp index 77676c00a8..2c975e0320 100644 --- a/src/Gui/GestureNavigationStyle.cpp +++ b/src/Gui/GestureNavigationStyle.cpp @@ -1010,7 +1010,7 @@ void GestureNavigationStyle::onSetRotationCenter(SbVec2s cursor){ SbBool ret = NavigationStyle::lookAtPoint(cursor); if(!ret){ this->interactiveCountDec(); //this was in original gesture nav. Not sure what is it needed for --DeepSOIC - Base::Console().Warning( + Base::Console().Message( "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 8c9bd83c6c..2040e0d649 100644 --- a/src/Gui/MayaGestureNavigationStyle.cpp +++ b/src/Gui/MayaGestureNavigationStyle.cpp @@ -295,7 +295,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) SbBool ret = NavigationStyle::lookAtPoint(event->getPosition()); if(!ret){ this->interactiveCountDec(); - Base::Console().Warning( + Base::Console().Message( "No object under cursor! Can't set new center of rotation.\n"); } } @@ -413,7 +413,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) SbBool ret = NavigationStyle::lookAtPoint(event->getPosition()); if(!ret){ this->interactiveCountDec(); - Base::Console().Warning( + Base::Console().Message( "No object under cursor! Can't set new center of rotation.\n"); } }