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

Added EVNT naming

This commit is contained in:
Jack Andersen
2015-10-26 14:32:12 -10:00
parent d46f44cefa
commit 571f9d1b4c
4 changed files with 19 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ struct ANCS : BigYAML
void gatherPrimitives(std::map<atUint32, DNAANCS::AnimationResInfo<UniqueID32>>& out)
{
out[animIdx] = {animName, animId, false};
out[animIdx] = {animName, animId, UniqueID32(), false};
}
};
struct MetaAnimBlend : IMetaAnim
@@ -375,6 +375,17 @@ struct ANCS : BigYAML
out.clear();
for (const AnimationSet::Animation& ai : animationSet.animations)
ai.metaAnim.m_anim->gatherPrimitives(out);
for (auto& anim : out)
{
for (const AnimationSet::AnimationResources& res : animationSet.animResources)
{
if (res.animId == anim.second.animId)
{
anim.second.evntId = res.evntId;
break;
}
}
}
}
static bool Extract(const SpecBase& dataSpec,