Forgot to include these files in sculpt shape key commit.

This commit is contained in:
Brecht Van Lommel
2009-11-11 18:31:19 +00:00
parent d70943c40c
commit c5b89a2b7a
3 changed files with 14 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ float *do_ob_key(struct Scene *scene, struct Object *ob);
struct Key *ob_get_key(struct Object *ob);
struct KeyBlock *ob_get_keyblock(struct Object *ob);
struct KeyBlock *ob_get_reference_keyblock(struct Object *ob);
struct KeyBlock *key_get_keyblock(struct Key *key, int index);
struct KeyBlock *key_get_named_keyblock(struct Key *key, const char name[]);
char *key_get_curValue_rnaPath(struct Key *key, struct KeyBlock *kb);

View File

@@ -68,6 +68,9 @@ typedef struct SculptSession {
struct MFace *mface;
int totvert, totface;
float *face_normals;
struct Object *ob;
struct KeyBlock *kb, *refkb;
/* Mesh connectivity */
struct ListBase *fmap;

View File

@@ -1408,6 +1408,16 @@ KeyBlock *ob_get_keyblock(Object *ob)
return NULL;
}
KeyBlock *ob_get_reference_keyblock(Object *ob)
{
Key *key= ob_get_key(ob);
if (key)
return key->refkey;
return NULL;
}
/* get the appropriate KeyBlock given an index */
KeyBlock *key_get_keyblock(Key *key, int index)
{