Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2016-05-26 18:40:56 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2016-05-26 18:53:25 +0300
commit29aa13cfa284182ee47818a477a3b8b7297a12c8 (patch)
tree3a5fe10d5d00d7621aa3118c003667cb9202f3ca /source/blender/collada/ArmatureImporter.h
parent6a7ce064adc14ccd0c0621edf616dd4c45c0a3fa (diff)
fix: Import of meshes with holes is now reported as WARNING (unsupported)
improved: add support for bone tail export/import using Blender Collada profile Differential Revision: https://developer.blender.org/D2031
Diffstat (limited to 'source/blender/collada/ArmatureImporter.h')
-rw-r--r--source/blender/collada/ArmatureImporter.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/collada/ArmatureImporter.h b/source/blender/collada/ArmatureImporter.h
index 732fda80ff1..407fa83f84b 100644
--- a/source/blender/collada/ArmatureImporter.h
+++ b/source/blender/collada/ArmatureImporter.h
@@ -65,17 +65,27 @@ private:
char name[MAXBONENAME];
int chain_length;
bool is_leaf;
+ float tail[3];
+ bool use_connect;
public:
BoneExtended(EditBone *aBone);
- char *get_name();
- int get_chain_length();
void set_name(char *aName);
+ char *get_name();
+
void set_chain_length(const int aLength);
+ int get_chain_length();
+
void set_leaf_bone(bool state);
bool is_leaf_bone();
+
+ void set_tail(float *vec);
+ float *get_tail();
+
+ void set_use_connect(int use_connect);
+ int get_use_connect();
};
class ArmatureImporter : private TransformReader
@@ -131,6 +141,7 @@ private:
void clear_extended_boneset();
void fix_leaf_bones(bArmature *armature, Bone *bone);
+ void fix_parent_connect(bArmature *armature, Bone *bone);
void connect_bone_chains(bArmature *armature, Bone *bone, const int max_chain_length);
void set_pose( Object *ob_arm, COLLADAFW::Node *root_node, const char *parentname, float parent_mat[4][4]);