This is a very brittle way to parse a URI! Is there no expectation that
it will encounter "http://blah/foo/bar"; etc.?

On Thu, 2006-09-28 at 17:05 -0700, [EMAIL PROTECTED]
wrote:
> ... but I was surprised to see
> that texturing has been broken since I donated the code. Good thing is
> that I know what the problem is and was able to fix it. In
> daeRMaterials.cpp line 466
> std::string filename = (dImg->getInit_from()->getValue().getURI()+7);
> needs to be changed to
> std::string filename = (dImg->getInit_from()->getValue().getURI()+8);
> 
> The +8 is used to strip file:/// from the front of the URI used to
> locate the image file. Having +7 leaves the first / which then causes
> the image not to be found.
> 
> Whoever made that change, why? I am wondering if this is a portability
> issue and +7 is needed for some platforms +8 others.
> 
> -Andy


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to