From Bob Kuehne, build fix for OSX/gcc 4.0.1

This commit is contained in:
Robert Osfield
2008-02-18 14:14:08 +00:00
parent 91e35599dc
commit 8b77cc4dac

View File

@@ -99,7 +99,8 @@ void daeWriter::processMaterial( osg::StateSet *ss, domInstance_geometry *ig, co
osg::Image *osgimg = tex->getImage( 0 );
domImage::domInit_from *imgif = daeSafeCast< domImage::domInit_from >( img->createAndPlace( "init_from" ) );
std::string fileURI = ReaderWriterDAE::ConvertFilePathToColladaCompatibleURI(osgDB::findDataFile(osgimg->getFileName()));
imgif->setValue(daeURI(fileURI.c_str()));
daeURI dd( fileURI.c_str() );
imgif->setValue( dd );
// The document URI should contain the canonical path it was created with
imgif->getValue().makeRelativeTo(doc->getDocumentURI());