diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-08 17:24:38 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-08 17:25:34 +0300 |
commit | 5f364216acd5bf0f8098b1da1cdb2e75d42d59b3 (patch) | |
tree | 11f8e8da30f7714b3d895c67787f3e68122208e7 /source/blender/blenkernel/intern/key.c | |
parent | d7f482f88ecba7cf8f864f3bd092506c88c78f25 (diff) |
Cleanup/Refactor: Shapekey: Get rid of `BKE_key_copy_nolib()`
Once again, no behavioral change expected here.
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index 5496da2d6f4..8d0413f64c5 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -296,36 +296,6 @@ Key *BKE_key_add(Main *bmain, ID *id) /* common function */ return key; } -/* XXX TODO get rid of this! */ -Key *BKE_key_copy_nolib(Key *key) -{ - Key *keyn; - KeyBlock *kbn, *kb; - - keyn = MEM_dupallocN(key); - - keyn->adt = NULL; - - BLI_duplicatelist(&keyn->block, &key->block); - - kb = key->block.first; - kbn = keyn->block.first; - while (kbn) { - - if (kbn->data) { - kbn->data = MEM_dupallocN(kbn->data); - } - if (kb == key->refkey) { - keyn->refkey = kbn; - } - - kbn = kbn->next; - kb = kb->next; - } - - return keyn; -} - /* Sort shape keys and Ipo curves after a change. This assumes that at most * one key was moved, which is a valid assumption for the places it's * currently being called. |