diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2016-09-23 13:56:04 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2016-09-24 02:06:32 +0300 |
commit | 4b891b40c218ef5f45706cbc4636a5333469dd1c (patch) | |
tree | 6a62b4f12e0fba5253184555b10826bd4ca6c6ae /source/blender/collada/collada_utils.h | |
parent | 25b61662f5b4c9d04a43611927e7748a046f35db (diff) |
Fix: Collada Importer did not import the Blender Profile information correctly when multiple objects are bound to same armature. This caused Bone tails to be placed wrong.
Diffstat (limited to 'source/blender/collada/collada_utils.h')
-rw-r--r-- | source/blender/collada/collada_utils.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h index ee371f7959e..7fdbef3b6cb 100644 --- a/source/blender/collada/collada_utils.h +++ b/source/blender/collada/collada_utils.h @@ -153,5 +153,24 @@ public: int get_use_connect(); }; +/* a map to store bone extension maps +| std:string : an armature name +| BoneExtended * : a map that contains extra data for bones +*/ +typedef std::map<std::string, BoneExtended *> BoneExtensionMap; + +/* +| A class to organise bone extendion data for multiple Armatures. +| this is needed for the case where a Collada file contains 2 or more +| separate armatures. +*/ +class BoneExtensionManager { +private: + std::map<std::string, BoneExtensionMap *> extended_bone_maps; + +public: + BoneExtensionMap &getExtensionMap(bArmature *armature); + ~BoneExtensionManager(); +}; #endif |