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

Merge branch 'master' of ssh://gitlab.axiodl.com:6431/AxioDL/urde

This commit is contained in:
Jack Andersen
2017-12-26 14:51:22 -10:00
3 changed files with 9 additions and 4 deletions

View File

@@ -1364,14 +1364,19 @@ bool ANCS::CookANIM(const hecl::ProjectPath& outPath,
/* Build bone ID map */ /* Build bone ID map */
std::unordered_map<std::string, atInt32> boneIdMap; std::unordered_map<std::string, atInt32> boneIdMap;
std::experimental::optional<CINF> rigCinf;
std::experimental::optional<DNAANIM::RigInverter<CINF>> rigInv; std::experimental::optional<DNAANIM::RigInverter<CINF>> rigInv;
for (const DNAANCS::Actor::Armature& arm : actor.armatures) for (const DNAANCS::Actor::Armature& arm : actor.armatures)
{ {
CINF cinf(arm, boneIdMap);
if (!rigInv) if (!rigInv)
{ {
rigCinf.emplace(arm, boneIdMap);
auto matrices = ds.getBoneMatrices(arm.name); auto matrices = ds.getBoneMatrices(arm.name);
rigInv.emplace(cinf, matrices); rigInv.emplace(*rigCinf, matrices);
}
else
{
CINF cinf(arm, boneIdMap);
} }
} }

2
amuse

Submodule amuse updated: 3eba4cc1ac...4c2a262478

2
hecl

Submodule hecl updated: fac818d9a0...caf9749c10