Fix to the CameraGroup::setViewByMarix usage.

This commit is contained in:
Robert Osfield
2003-04-10 10:16:39 +00:00
parent e1e54570cb
commit 5c88b5ff8b

View File

@@ -279,7 +279,10 @@ void Viewer::update()
}
// update the main producer camera
if (_old_style_osg_camera.valid()) OsgCameraGroup::setView(_old_style_osg_camera->getModelViewMatrix());
if (_old_style_osg_camera.valid())
{
CameraGroup::setViewByMatrix(Producer::Matrix(_old_style_osg_camera->getModelViewMatrix().ptr()));
}
}
void Viewer::frame()