Added naming of root of presentation and used this in the setup of the position of the camera.

This commit is contained in:
Robert Osfield
2012-12-07 13:59:57 +00:00
parent ccdca3d9bf
commit 8df5440a26
2 changed files with 16 additions and 8 deletions

View File

@@ -248,6 +248,7 @@ void SlideShowConstructor::createPresentation()
_presentationSwitch->setName(std::string("Presentation_")+_presentationName);
_root->addChild(_presentationSwitch.get());
_root->setName(std::string("Presentation_")+_presentationName);
osg::Vec3 slideCenter = _slideOrigin + osg::Vec3(_slideWidth*0.5f,0.0f,_slideHeight*0.5f);