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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user