Commit 0a639ffe authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX #537] better fix for project loading and home calculation

parent 3b6843b7
......@@ -219,6 +219,8 @@ void WGEZoomTrackballManipulator::fitToScreen( const osg::Camera* camera )
return;
}
computeHomePosition( camera, true );
double radiusFac[] = {
1, 1, 1,
-1, 1, 1,
......
......@@ -1091,8 +1091,8 @@ bool WMainWindow::event( QEvent* event )
}
}
// Set the manipulator anew after loading to fix some bugs of commands to get passed to the right manipulator.
m_mainGLWidget->getViewer()->setCameraManipulator( new WGEZoomTrackballManipulator() );
// Loading projects loses home position calculation
m_mainGLWidget->getViewer()->getCameraManipulator()->setAutoComputeHomePosition( true );
}
}
......
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