Apply patch [3473792] - LWS loader failed to find LWO files referenced with inaccessible, absolute paths, but actually residing in the folder of the LWS file. Applied the patch to FileSystemFilter, so all loaders do this now.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1113 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -452,8 +452,9 @@ std::string LWSImporter::FindLWOFile(const std::string& in)
|
||||
}
|
||||
else tmp = in;
|
||||
|
||||
if (io->Exists(tmp))
|
||||
if (io->Exists(tmp)) {
|
||||
return in;
|
||||
}
|
||||
|
||||
// file is not accessible for us ... maybe it's packed by
|
||||
// LightWave's 'Package Scene' command?
|
||||
@@ -468,8 +469,10 @@ std::string LWSImporter::FindLWOFile(const std::string& in)
|
||||
return test;
|
||||
|
||||
test = ".." + io->getOsSeparator() + test;
|
||||
if (io->Exists(test))
|
||||
if (io->Exists(test)) {
|
||||
return test;
|
||||
}
|
||||
|
||||
|
||||
// return original path, maybe the IOsystem knows better
|
||||
return tmp;
|
||||
|
||||
Reference in New Issue
Block a user