more specific token search for Collada Loader

collada can appear in many files, such as glTFs via the “generator” field (in the form of collada2gltf)
pull/1423/head
Daniel Hritzkiv 2017-09-07 15:48:11 -04:00
parent 5cb13aa4b3
commit d518289e72
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ bool ColladaLoader::CanRead( const std::string& pFile, IOSystem* pIOHandler, boo
* might be NULL and it's our duty to return true here.
*/
if (!pIOHandler)return true;
const char* tokens[] = {"collada"};
const char* tokens[] = {"<collada"};
return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1);
}
return false;