Browse Source

Fix merge issues

Kim Kulling 3 years ago
parent
commit
acd70b35a0
2 changed files with 3 additions and 4 deletions
  1. 3 1
      code/AssetLib/Blender/BlenderLoader.cpp
  2. 0 3
      code/AssetLib/Ogre/OgreImporter.cpp

+ 3 - 1
code/AssetLib/Blender/BlenderLoader.cpp

@@ -120,7 +120,9 @@ static const char * const TokensForSearch[] = { "blender" };
 // Returns whether the class can handle the format of the given file.
 bool BlenderImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
     // note: this won't catch compressed files
-    return SearchFileHeaderForToken(pIOHandler, pFile, TokensForSearch, AI_COUNT_OF(TokensForSearch));
+    static const char *tokens[] = { "<BLENDER", "blender" };
+
+    return SearchFileHeaderForToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens));
 }
 
 // ------------------------------------------------------------------------------------------------

+ 0 - 3
code/AssetLib/Ogre/OgreImporter.cpp

@@ -77,9 +77,6 @@ bool OgreImporter::CanRead(const std::string &pFile, Assimp::IOSystem *pIOHandle
     if (EndsWith(pFile, ".mesh.xml", false)) {
         static const char *tokens[] = { "<mesh>" };
         return SearchFileHeaderForToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens));
-    } else {
-        /// @todo Read and validate first header chunk?
-        return false;
     }
 
     /// @todo Read and validate first header chunk?