fixes #0003394: Crash on gesture rotation with focus

This commit is contained in:
wmayer
2018-03-30 15:24:57 +02:00
parent ef864f2c15
commit b502d764fd
2 changed files with 4 additions and 0 deletions

View File

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