2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 04:27:42 +00:00

Integrate SDNA parser for checking .blend types

This commit is contained in:
Jack Andersen
2018-10-21 23:29:44 -10:00
parent b76ee77ecf
commit 45fb8db388
4 changed files with 8 additions and 35 deletions

View File

@@ -50,6 +50,7 @@
#include "hecl/ClientProcess.hpp"
#include "hecl/MultiProgressPrinter.hpp"
#include "hecl/Blender/Connection.hpp"
#include "hecl/Blender/SDNARead.hpp"
#include "nod/nod.hpp"
namespace DataSpec
@@ -574,11 +575,7 @@ struct SpecMP1 : SpecBase
if (hecl::IsPathBlend(asBlend))
{
hecl::blender::Connection& conn = btok.getBlenderConnection();
if (!conn.openBlend(asBlend))
return {};
switch (conn.getBlendType())
switch (hecl::blender::GetBlendType(asBlend.getAbsolutePath()))
{
case hecl::blender::BlendType::Mesh:
return {SBIG('CMDL'), path.hash().val32()};