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.
This commit is contained in:
Adrian
2021-12-28 22:50:47 -03:00
committed by wwmayer
parent 5e6fec53ea
commit 7f0bc597a5
2 changed files with 3 additions and 3 deletions

View File

@@ -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");
}

View File

@@ -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");
}
}