diff options
Diffstat (limited to 'tools/collada/collada.cpp')
-rw-r--r-- | tools/collada/collada.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/collada/collada.cpp b/tools/collada/collada.cpp index 66e5e3f0e6..0d02c32d00 100644 --- a/tools/collada/collada.cpp +++ b/tools/collada/collada.cpp @@ -344,6 +344,9 @@ void Collada::_parse_image(XMLParser& parser) { // path is relative to file being loaded, so convert to a resource path path=Globals::get_singleton()->localize_path(state.local_path.get_base_dir()+"/"+path); + } else if (path.find("file:///")==0) { + path=path.replace_first("file:///",""); + path=Globals::get_singleton()->localize_path(path); } image.path=path; |