From 0f6e0d662199bcf825562bb3d82af64b08f22257 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 31 Mar 2016 11:21:23 -0700 Subject: [PATCH] Enable HDML cooking --- DataSpec/DNACommon/CMDL.cpp | 3 +++ DataSpec/SpecMP1.cpp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DataSpec/DNACommon/CMDL.cpp b/DataSpec/DNACommon/CMDL.cpp index 124498f77..db4d55e7a 100644 --- a/DataSpec/DNACommon/CMDL.cpp +++ b/DataSpec/DNACommon/CMDL.cpp @@ -1628,5 +1628,8 @@ bool WriteHMDLCMDL(const hecl::ProjectPath& outPath, const hecl::ProjectPath& in return true; } +template bool WriteHMDLCMDL +(const hecl::ProjectPath& outPath, const hecl::ProjectPath& inPath, const Mesh& mesh); + } } diff --git a/DataSpec/SpecMP1.cpp b/DataSpec/SpecMP1.cpp index 964b8429b..a5018b01c 100644 --- a/DataSpec/SpecMP1.cpp +++ b/DataSpec/SpecMP1.cpp @@ -324,7 +324,10 @@ struct SpecMP1 : SpecBase { progress(hecl::SysFormat(_S("%d"), surfCount).c_str()); }); - DNAMP1::CMDL::Cook(out, in, mesh); + if (m_pc) + DNAMP1::CMDL::HMDLCook(out, in, mesh); + else + DNAMP1::CMDL::Cook(out, in, mesh); } void cookActor(const hecl::ProjectPath& out, const hecl::ProjectPath& in,