Fix issue #354: updateCameras reset viewport size to its initial value on OSG 3.0
This commit is contained in:
parent
827ea96d7e
commit
243acb61c8
1 changed files with 2 additions and 0 deletions
|
@ -191,8 +191,10 @@ void CameraGroup::update(const osg::Vec3d& position,
|
|||
for (CameraList::iterator i = _cameras.begin(); i != _cameras.end(); ++i) {
|
||||
const CameraInfo* info = i->get();
|
||||
const View::Slave& slave = _viewer->getSlave(info->slaveIndex);
|
||||
#if SG_OSG_VERSION_LESS_THAN(3,0,0)
|
||||
// refreshes camera viewports (for now)
|
||||
updateCameras(info);
|
||||
#endif
|
||||
Camera* camera = info->camera.get();
|
||||
Matrix viewMatrix;
|
||||
if ((info->flags & VIEW_ABSOLUTE) != 0)
|
||||
|
|
Loading…
Reference in a new issue