Rename ConvertPath() to UriDecodePath()
parent
5e84889724
commit
6a6ccc0fb0
|
@ -1763,7 +1763,7 @@ aiString ColladaLoader::FindFilenameForEffectTexture(const ColladaParser& pParse
|
|||
|
||||
//set default texture file name
|
||||
result.Set(name + ".jpg");
|
||||
ColladaParser::ConvertPath(result);
|
||||
ColladaParser::UriDecodePath(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ std::string ColladaParser::ReadZaeManifest(ZipArchiveIOSystem &zip_archive) {
|
|||
return std::string();
|
||||
|
||||
aiString ai_str(filepath);
|
||||
ConvertPath(ai_str);
|
||||
UriDecodePath(ai_str);
|
||||
|
||||
return std::string(ai_str.C_Str());
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ std::string ColladaParser::ReadZaeManifest(ZipArchiveIOSystem &zip_archive) {
|
|||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Convert a path read from a collada file to the usual representation
|
||||
void ColladaParser::ConvertPath(aiString& ss)
|
||||
void ColladaParser::UriDecodePath(aiString& ss)
|
||||
{
|
||||
// TODO: collada spec, p 22. Handle URI correctly.
|
||||
// For the moment we're just stripping the file:// away to make it work.
|
||||
|
@ -1176,7 +1176,7 @@ void ColladaParser::ReadImage(Collada::Image& pImage)
|
|||
if (sz)
|
||||
{
|
||||
aiString filepath(sz);
|
||||
ConvertPath(filepath);
|
||||
UriDecodePath(filepath);
|
||||
pImage.mFileName = filepath.C_Str();
|
||||
}
|
||||
TestClosing("init_from");
|
||||
|
@ -1214,7 +1214,7 @@ void ColladaParser::ReadImage(Collada::Image& pImage)
|
|||
if (sz)
|
||||
{
|
||||
aiString filepath(sz);
|
||||
ConvertPath(filepath);
|
||||
UriDecodePath(filepath);
|
||||
pImage.mFileName = filepath.C_Str();
|
||||
}
|
||||
TestClosing("ref");
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace Assimp
|
|||
friend class ColladaLoader;
|
||||
|
||||
/** Converts a path read from a collada file to the usual representation */
|
||||
static void ConvertPath(aiString& ss);
|
||||
static void UriDecodePath(aiString& ss);
|
||||
|
||||
protected:
|
||||
/** Map for generic metadata as aiString */
|
||||
|
|
Loading…
Reference in New Issue