diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-06 18:02:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-06 18:06:37 +0300 |
commit | 8e73b770d4e9da71fb727444611657732cc52047 (patch) | |
tree | 7296c302fe204cf6e238106bfcf2928a5ddf8b84 /source/blender/blenkernel/intern/object.c | |
parent | 05271830901401dd6a395f730990a6ac1ca6a6d6 (diff) |
Remove slurph shape-key feature
This is an old option which wasn't working in over a year without complaint.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index f6b328eb8e8..d4a2c327572 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -3347,7 +3347,7 @@ void BKE_object_delete_ptcache(Object *ob, int index) /* shape key utility function */ /************************* Mesh ************************/ -static KeyBlock *insert_meshkey(Scene *scene, Object *ob, const char *name, const bool from_mix) +static KeyBlock *insert_meshkey(Object *ob, const char *name, const bool from_mix) { Mesh *me = ob->data; Key *key = me->key; @@ -3368,7 +3368,7 @@ static KeyBlock *insert_meshkey(Scene *scene, Object *ob, const char *name, cons else { /* copy from current values */ int totelem; - float *data = BKE_key_evaluate_object(scene, ob, &totelem); + float *data = BKE_key_evaluate_object(ob, &totelem); /* create new block with prepared data */ kb = BKE_keyblock_add_ctime(key, name, false); @@ -3379,7 +3379,7 @@ static KeyBlock *insert_meshkey(Scene *scene, Object *ob, const char *name, cons return kb; } /************************* Lattice ************************/ -static KeyBlock *insert_lattkey(Scene *scene, Object *ob, const char *name, const bool from_mix) +static KeyBlock *insert_lattkey(Object *ob, const char *name, const bool from_mix) { Lattice *lt = ob->data; Key *key = lt->key; @@ -3406,7 +3406,7 @@ static KeyBlock *insert_lattkey(Scene *scene, Object *ob, const char *name, cons else { /* copy from current values */ int totelem; - float *data = BKE_key_evaluate_object(scene, ob, &totelem); + float *data = BKE_key_evaluate_object(ob, &totelem); /* create new block with prepared data */ kb = BKE_keyblock_add_ctime(key, name, false); @@ -3417,7 +3417,7 @@ static KeyBlock *insert_lattkey(Scene *scene, Object *ob, const char *name, cons return kb; } /************************* Curve ************************/ -static KeyBlock *insert_curvekey(Scene *scene, Object *ob, const char *name, const bool from_mix) +static KeyBlock *insert_curvekey(Object *ob, const char *name, const bool from_mix) { Curve *cu = ob->data; Key *key = cu->key; @@ -3446,7 +3446,7 @@ static KeyBlock *insert_curvekey(Scene *scene, Object *ob, const char *name, con else { /* copy from current values */ int totelem; - float *data = BKE_key_evaluate_object(scene, ob, &totelem); + float *data = BKE_key_evaluate_object(ob, &totelem); /* create new block with prepared data */ kb = BKE_keyblock_add_ctime(key, name, false); @@ -3457,16 +3457,16 @@ static KeyBlock *insert_curvekey(Scene *scene, Object *ob, const char *name, con return kb; } -KeyBlock *BKE_object_insert_shape_key(Scene *scene, Object *ob, const char *name, const bool from_mix) +KeyBlock *BKE_object_insert_shape_key(Object *ob, const char *name, const bool from_mix) { switch (ob->type) { case OB_MESH: - return insert_meshkey(scene, ob, name, from_mix); + return insert_meshkey(ob, name, from_mix); case OB_CURVE: case OB_SURF: - return insert_curvekey(scene, ob, name, from_mix); + return insert_curvekey(ob, name, from_mix); case OB_LATTICE: - return insert_lattkey(scene, ob, name, from_mix); + return insert_lattkey(ob, name, from_mix); default: return NULL; } |