mirror of https://github.com/AxioDL/metaforce.git
Decide against emitting ANIM IDs in ANCS YAML
This commit is contained in:
parent
3723076ae3
commit
cd8b6b6ed4
|
@ -32,20 +32,6 @@ struct AnimationResInfo
|
|||
bool additive;
|
||||
};
|
||||
|
||||
static void WriteOutAnimId(athena::io::YAMLDocWriter& __dna_docout,
|
||||
const UniqueID32& ancsId,
|
||||
const std::string& animName)
|
||||
{
|
||||
__dna_docout.enterSubRecord("animId");
|
||||
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(ancsId);
|
||||
if (path)
|
||||
{
|
||||
path = path.getWithExtension(_S(".blend"));
|
||||
__dna_docout.writeString(nullptr, path.getRelativePathUTF8() + _S('|') + animName);
|
||||
}
|
||||
__dna_docout.leaveSubRecord();
|
||||
}
|
||||
|
||||
template <class PAKRouter, class ANCSDNA, class MaterialSet, class SurfaceHeader, atUint32 CMDLVersion>
|
||||
bool ReadANCSToBlender(hecl::BlenderConnection& conn,
|
||||
const ANCSDNA& ancs,
|
||||
|
|
|
@ -230,8 +230,6 @@ struct ANCS : BigYAML
|
|||
|
||||
void read(athena::io::YAMLDocReader& __dna_docin)
|
||||
{
|
||||
/* animId */
|
||||
__dna_docin.enumerate("animId", animId);
|
||||
/* animIdx */
|
||||
animIdx = __dna_docin.readUint32("animIdx");
|
||||
/* animName */
|
||||
|
@ -240,12 +238,17 @@ struct ANCS : BigYAML
|
|||
unk1 = __dna_docin.readFloat("unk1");
|
||||
/* unk2 */
|
||||
unk2 = __dna_docin.readUint32("unk2");
|
||||
|
||||
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(m_ancsId);
|
||||
if (path)
|
||||
{
|
||||
hecl::SystemStringView sysView(animName);
|
||||
animId = path.ensureAuxInfo(sysView.sys_str().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void write(athena::io::YAMLDocWriter& __dna_docout) const
|
||||
{
|
||||
/* animId */
|
||||
DNAANCS::WriteOutAnimId(__dna_docout, m_ancsId, animName);
|
||||
/* animIdx */
|
||||
__dna_docout.writeUint32("animIdx", animIdx);
|
||||
/* animName */
|
||||
|
|
Loading…
Reference in New Issue