Prechádzať zdrojové kódy

Merge pull request #756 from StepanHrbek/master

Collada exporter: improve compatibility when exported path contains ':'.
Kim Kulling 9 rokov pred
rodič
commit
a3a42fd08b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      code/ColladaExporter.cpp

+ 1 - 1
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;