Collada: Importer generates animations from <library_animation_clips>, if the node is present.

This commit is contained in:
Trond Abusdal
2016-02-07 23:36:49 +01:00
parent 2466ae6c2e
commit c34717639e
3 changed files with 170 additions and 1 deletions

View File

@@ -82,6 +82,12 @@ namespace Assimp
/** Reads the animation library */
void ReadAnimationLibrary();
/** Reads the animation clip library */
void ReadAnimationClipLibrary();
/** Re-build animations from animation clip library, if present */
void RebuildRootAnimationsFromClips();
/** Reads an animation into the given parent structure */
void ReadAnimation( Collada::Animation* pParent);
@@ -312,6 +318,14 @@ namespace Assimp
/** Controller library: joint controllers by ID */
typedef std::map<std::string, Collada::Controller> ControllerLibrary;
ControllerLibrary mControllerLibrary;
/** Animation library: animation references by ID */
typedef std::map<std::string, Collada::Animation*> AnimationLibrary;
AnimationLibrary mAnimationLibrary;
/** Animation clip library: clip animation references by ID */
typedef std::vector<std::pair<std::string, std::vector<std::string>>> AnimationClipLibrary;
AnimationClipLibrary mAnimationClipLibrary;
/** Pointer to the root node. Don't delete, it just points to one of
the nodes in the node library. */