make retrieving view direction numerically more stable, change orientation of bottom view

This commit is contained in:
wmayer
2017-11-13 21:53:10 +01:00
parent d8b2855933
commit d04fd16263
3 changed files with 4 additions and 6 deletions

View File

@@ -664,7 +664,7 @@ bool View3DInventor::onMsg(const char* pMsg, const char** ppReturn)
return true;
}
else if(strcmp("ViewBottom",pMsg) == 0 ) {
_viewer->setCameraOrientation(SbRotation(-1, 0, 0, 0));
_viewer->setCameraOrientation(SbRotation(0, -1, 0, 0));
_viewer->viewAll();
return true;
}