{"action":"opened","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/13890","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/13890/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/13890/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/13890/events","html_url":"https://github.com/mrdoob/three.js/issues/13890","id":315375025,"number":13890,"title":"ColladaLoader: image urls aren't cleared of file:///... garbage","user":{"login":"makc","id":242577,"avatar_url":"https://avatars0.githubusercontent.com/u/242577?v=4","gravatar_id":"","url":"https://api.github.com/users/makc","html_url":"https://github.com/makc","followers_url":"https://api.github.com/users/makc/followers","following_url":"https://api.github.com/users/makc/following{/other_user}","gists_url":"https://api.github.com/users/makc/gists{/gist_id}","starred_url":"https://api.github.com/users/makc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makc/subscriptions","organizations_url":"https://api.github.com/users/makc/orgs","repos_url":"https://api.github.com/users/makc/repos","events_url":"https://api.github.com/users/makc/events{/privacy}","received_events_url":"https://api.github.com/users/makc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T08:12:01Z","updated_at":"2018-04-18T08:12:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am getting urls like http://127.0.0.1:8000/collada_model/file:///I:/DROP_BOX/Dropbox/PROJECTS/PROMOTION_PLY_projects/TABLE/Table_low_res_maya/sourceimages/_00_A1Shape.jpg by default.\r\n\r\nDoing loader.setPath ('collada_model/') results into urls transformed to http://127.0.0.1:8000/collada_model/file:///I:/DROP_BOX/Dropbox/PROJECTS/PROMOTION_PLY_projects/TABLE/Table_low_res_maya/sourceimages/_00_A1Shape.jpg\r\n\r\nDoing\r\n```javascript\r\n\t\t\t\t// create texture if image is avaiable\r\n\r\n\t\t\t\tif ( image !== undefined ) {\r\nimage = image.substr(image.lastIndexOf ('/') + 1); // <--- this\r\n\t\t\t\t\tvar texture = textureLoader.load( image );\r\n```\r\nsomewhere in ColladaLoader.js gets me urls without file:/// stuff, but I should not be doing this by hand, right?"}}
{"actor":{"display_login":"makc"}}