diff options
author | Bastien Montagne <bastien@blender.org> | 2021-09-16 13:39:40 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-09-16 15:30:56 +0300 |
commit | 27b6636c4525bd051723d30a148c6a037ea169d8 (patch) | |
tree | 42140b40895e9c41d1a3015007cbaf746fd02d7a /source | |
parent | 4ec2bdbbda05f7460913b65b5b99621021f7f480 (diff) |
Cleanup: Comment about shpaekey being treated as embedded IDs in `BKE_id_newptr_and_tag_clear`.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/lib_id.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index daafa587feb..60b6d7ad66d 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -347,6 +347,9 @@ void BKE_id_newptr_and_tag_clear(ID *id) id->newid = NULL; /* Deal with embedded data too. */ + /* NOTE: even though ShapeKeys are not technically embedded data currently, they behave as such + * in most cases, so for sake of consistency treat them as such here. Also mirrors the behavior + * in `BKE_lib_id_make_local`. */ Key *key = BKE_key_from_id(id); if (key != NULL) { BKE_id_newptr_and_tag_clear(&key->id); |