Hello Johannes, Johannes Brunen wrote: > I'm facing the following problem: I would like to allow the import of > collada files from pathes containing spaces. I know that this is ugly, > but it is normaly expected on the windows platform. Today this does not > work for collada files because the file path is internally modified by > replacing all space characters with string '%20'. This does lead then to > problems on loading associated textures files.
yeah, I agree, files with spaces should not be a problem any more, it is 2010 after all ;) ;) > I do not know what is the correct way to handle this, but a viable hack > would be to undo the replacement in file 'OSGColladaImage.cpp': [SNIP - code context] > boost::replace_all(imagePath, "%20", " "); > ... > > Could we introduce such a hack? Is there any better alternative > solution? What do you think? hm, colladadom has cdom::uriToNativePath, we should probably pass it through there. In a quick test here (on linux) this seems to do the right thing, can you give r2428 a try? Thanks! Cheers, Carsten ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users