glTF2Importer: Support .vrm extension (#5569)

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
pull/5573/head^2
Julian Uy 2024-05-13 06:24:41 -05:00 committed by GitHub
parent 001bb01eb2
commit b6d53a0047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ static constexpr aiImporterDesc desc = {
0, 0,
0, 0,
0, 0,
"gltf glb" "gltf glb vrm"
}; };
glTF2Importer::glTF2Importer() : glTF2Importer::glTF2Importer() :
@ -106,7 +106,7 @@ const aiImporterDesc *glTF2Importer::GetInfo() const {
bool glTF2Importer::CanRead(const std::string &filename, IOSystem *pIOHandler, bool checkSig) const { bool glTF2Importer::CanRead(const std::string &filename, IOSystem *pIOHandler, bool checkSig) const {
const std::string extension = GetExtension(filename); const std::string extension = GetExtension(filename);
if (!checkSig && (extension != "gltf") && (extension != "glb")) { if (!checkSig && (extension != "gltf") && (extension != "glb") && (extension != "vrm")) {
return false; return false;
} }