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).
This commit is contained in:
Chris Want
2003-04-24 00:48:43 +00:00
parent 788fa67bdf
commit c95692df7c
10 changed files with 746 additions and 13 deletions

View File

@@ -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