diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-10-05 10:47:31 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-10-05 11:59:38 +0300 |
commit | 44e62635c5a1369357e2e75c98471702eb7d6c47 (patch) | |
tree | 9bb1208fc9a57153a6275b76b59a02d5f21b78c3 /source/blender/blenkernel/intern/key.c | |
parent | f00f3496a0ac1217e2de005ba44999e22e680039 (diff) |
Cleanup , and remove public '_release_datablocks' funcs for now.
On second thaought, will end up doing this differently in id-remap branch,
so for now just make this branch a cleanup, consistency-fixing one.
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index 8f45ec4c7a5..e965f2a8ea7 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -75,17 +75,6 @@ /** - * Release all datablocks (ID) used by this shapekey (datablocks are never freed, they are just unreferenced). - * - * \param key The shapekey which has to release its data. - */ -void BKE_key_release_datablocks(Key *key) -{ - /* No ID refcount here... */ - key->from = NULL; -} - -/** * Free (or release) any data used by this shapekey (does not free the key itself). * * \param key The shapekey to free. @@ -97,7 +86,8 @@ void BKE_key_free(Key *key, const bool do_id_user) KeyBlock *kb; if (do_id_user) { - BKE_key_release_datablocks(key); + /* No ID refcount here... */ + key->from = NULL; } BKE_animdata_free((ID *)key); |