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:
authorChris Want <cwant@ualberta.ca>2003-04-24 04:48:43 +0400
committerChris Want <cwant@ualberta.ca>2003-04-24 04:48:43 +0400
commitc95692df7ca0b2d4746e2e7a597b69a6f30c1676 (patch)
tree413150ab3b6d1b3f82e1a41ea1a78b171edd4330 /source/blender/makesdna/DNA_armature_types.h
parent788fa67bdf4a17c2128f15bc1f2fde7d58dd54bb (diff)
Support for auto-skinning when parenting a mesh to an armature.
Applies to bones that do not have a boneclass of unskinnable (set per bone in editmode in the button window).
Diffstat (limited to 'source/blender/makesdna/DNA_armature_types.h')
-rw-r--r--source/blender/makesdna/DNA_armature_types.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_armature_types.h b/source/blender/makesdna/DNA_armature_types.h
index 95dc6d8689e..867f62ff039 100644
--- a/source/blender/makesdna/DNA_armature_types.h
+++ b/source/blender/makesdna/DNA_armature_types.h
@@ -61,6 +61,10 @@ typedef struct Bone {
float defmat[4][4];
float irestmat[4][4]; /* Cached inverse of rest matrix (objectspace)*/
float posemat[4][4]; /* Cached pose matrix (objectspace)*/
+ short boneclass;
+ short filler1;
+ short filler2;
+ short filler3;
}Bone;
typedef struct bArmature {
@@ -119,5 +123,22 @@ enum {
BONE_ISMUSCLEBIT
};
-#endif
+enum {
+ BONE_SKINNABLE = 0,
+ BONE_UNSKINNABLE,
+ BONE_HEAD,
+ BONE_NECK,
+ BONE_BACK,
+ BONE_SHOULDER,
+ BONE_ARM,
+ BONE_HAND,
+ BONE_FINGER,
+ BONE_THUMB,
+ BONE_PELVIS,
+ BONE_LEG,
+ BONE_FOOT,
+ BONE_TOE,
+ BONE_TENTACLE
+};
+#endif