Added naming of root of presentation and used this in the setup of the position of the camera.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user