mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Update assimpShapeLoader.cpp
This commit is contained in:
parent
26e1350234
commit
144e1bcc60
1 changed files with 16 additions and 32 deletions
|
|
@ -255,22 +255,7 @@ void AssimpShapeLoader::enumerateScene()
|
||||||
|
|
||||||
void AssimpShapeLoader::processAnimations()
|
void AssimpShapeLoader::processAnimations()
|
||||||
{
|
{
|
||||||
bool ambient = false;
|
// add all animations into 1 ambient animation.
|
||||||
for(U32 n = 0; n < mScene->mNumAnimations; ++n)
|
|
||||||
{
|
|
||||||
Con::printf("[ASSIMP] Animation Found: %s", mScene->mAnimations[n]->mName.C_Str());
|
|
||||||
|
|
||||||
if (mScene->mAnimations[n]->mName.C_Str() == "ambient")
|
|
||||||
ambient = true;
|
|
||||||
|
|
||||||
AssimpAppSequence* newAssimpSeq = new AssimpAppSequence(mScene->mAnimations[n]);
|
|
||||||
appSequences.push_back(newAssimpSeq);
|
|
||||||
}
|
|
||||||
|
|
||||||
// dont have ambient, lets just add everything to an ambient sequence.
|
|
||||||
// we should probably just do this as default.
|
|
||||||
if (!ambient)
|
|
||||||
{
|
|
||||||
aiAnimation* ambientSeq = new aiAnimation();
|
aiAnimation* ambientSeq = new aiAnimation();
|
||||||
ambientSeq->mName = "ambient";
|
ambientSeq->mName = "ambient";
|
||||||
|
|
||||||
|
|
@ -290,7 +275,6 @@ void AssimpShapeLoader::processAnimations()
|
||||||
|
|
||||||
AssimpAppSequence* defaultAssimpSeq = new AssimpAppSequence(ambientSeq);
|
AssimpAppSequence* defaultAssimpSeq = new AssimpAppSequence(ambientSeq);
|
||||||
appSequences.push_back(defaultAssimpSeq);
|
appSequences.push_back(defaultAssimpSeq);
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue