From fcaec80dc9e10431a888b2c542dda28c93815b33 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Jul 2009 15:39:27 +0000 Subject: [PATCH] Fixed bug in handling of stereo image pairs --- src/osgPlugins/p3d/ReaderWriterP3D.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/p3d/ReaderWriterP3D.cpp b/src/osgPlugins/p3d/ReaderWriterP3D.cpp index d334679cf..fdf25704a 100644 --- a/src/osgPlugins/p3d/ReaderWriterP3D.cpp +++ b/src/osgPlugins/p3d/ReaderWriterP3D.cpp @@ -848,6 +848,10 @@ void ReaderWriterP3DXML::parseVolume(osgPresentation::SlideShowConstructor& cons void ReaderWriterP3DXML::parseStereoPair(osgPresentation::SlideShowConstructor& constructor, osgDB::XmlNode*cur) const { + + osg::notify(osg::NOTICE)<<"ReaderWriterP3DXML::parseStereoPair()"<name == "image_left") { getProperties(child,imageDataLeft); - filenameLeft = child->name; + filenameLeft = child->contents; } - if (cur->name == "image_right") + if (child->name == "image_right") { getProperties(child,imageDataRight); - filenameRight = child->name; + filenameRight = child->contents; getProperties(cur,imageDataRight); } } + osg::notify(osg::NOTICE)<<" filenameLeft="<