Commit f95207bf authored by Matthias Möller's avatar Matthias Möller

- using old sceneCenter and sceneRadius instead of fixed ones if bounding box...

- using old sceneCenter and sceneRadius instead of fixed ones if bounding box is invalid, calling scenegraph.
- this fixes camera disorientation after clearing the scene 
- this fixes skeleton nodes drawn incorrectly

refs #939

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14820 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1605ed39
......@@ -289,7 +289,7 @@ void glViewer::sceneGraph(ACG::SceneGraph::BaseNode* _root, const bool _resetTra
( bbmin[2] > bbmax[2] ) ) {
// Invalid bounding box, try to recover
setScenePos( ACG::Vec3d( 0.0,0.0,0.0 ) , 1.0, _resetTrackBall );
setScenePos( properties_.sceneCenter() , properties_.sceneRadius(), _resetTrackBall );
// Update bounding box to match the scene geometry after recovery
bbmin = ACG::Vec3d(-1.0,-1.0,-1.0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment