From c062eb0db4f92d6e7e62eed3147c3d41c0cc43c5 Mon Sep 17 00:00:00 2001 From: Stepan Hrbek Date: Thu, 21 Jan 2016 22:35:44 +0100 Subject: [PATCH] Collada exporter: improve compatibility when exported path contains ':'. Old code exported "c:/foo.jpg" path as "c%3a/foo.jpg". Replacing : with %3a was probably legal, but it made paths unreadable for existing Max importers. --- code/ColladaExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ColladaExporter.cpp b/code/ColladaExporter.cpp index 4b9b1c647..dcf82a564 100644 --- a/code/ColladaExporter.cpp +++ b/code/ColladaExporter.cpp @@ -547,7 +547,7 @@ void ColladaExporter::WriteImageEntry( const Surface& pSurface, const std::strin std::stringstream imageUrlEncoded; for( std::string::const_iterator it = pSurface.texture.begin(); it != pSurface.texture.end(); ++it ) { - if( isalnum_C( (unsigned char) *it) || *it == '_' || *it == '.' || *it == '/' || *it == '\\' ) + if( isalnum_C( (unsigned char) *it) || *it == ':' || *it == '_' || *it == '.' || *it == '/' || *it == '\\' ) imageUrlEncoded << *it; else imageUrlEncoded << '%' << std::hex << size_t( (unsigned char) *it) << std::dec;