mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 02:27:43 +00:00
Merge branch 'master' of ssh://gitlab.axiodl.com:6431/AxioDL/urde
This commit is contained in:
@@ -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
2
amuse
Submodule amuse updated: 3eba4cc1ac...4c2a262478
2
hecl
2
hecl
Submodule hecl updated: fac818d9a0...caf9749c10
Reference in New Issue
Block a user