ColladaLoader does now utilize SkeletonMeshBuilder to build animated meshes for animation skeletons.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@382 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2009-04-10 22:10:11 +00:00
parent a3b32f306c
commit f3324da6ea
1 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "fast_atof.h"
#include "ParsingUtils.h"
#include "SkeletonMeshBuilder.h"
#include "time.h"
@ -158,7 +159,16 @@ void ColladaLoader::InternReadFile( const std::string& pFile, aiScene* pScene, I
// store all cameras
StoreSceneCameras( pScene);
// store all animations
StoreAnimations( pScene, parser);
// If no meshes have been loaded, it's probably just an animated skeleton.
if (!pScene->mNumMeshes) {
SkeletonMeshBuilder hero(pScene);
pScene->mFlags |= AI_SCENE_FLAGS_INCOMPLETE;
}
}
// ------------------------------------------------------------------------------------------------