Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-11-09 23:15:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-09 23:15:11 +0300
commit6860ccabc0c0c3b701a77a81c23b4d83f076b56f (patch)
tree25d38f96335f790b6ba81efdfd76330bb87313a6 /source/blender/blenkernel/intern/library_query.c
parent9c6fe810a3cae2a5498f5760822b7a7e4a82bf4f (diff)
Cleanup: `BKE_library_update_ID_link_user`: use `id_us_ensure_real` for `IDWALK_USER_ONE`.
Diffstat (limited to 'source/blender/blenkernel/intern/library_query.c')
-rw-r--r--source/blender/blenkernel/intern/library_query.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c
index 002007e2a58..97f4a25ccd0 100644
--- a/source/blender/blenkernel/intern/library_query.c
+++ b/source/blender/blenkernel/intern/library_query.c
@@ -670,8 +670,6 @@ void BKE_library_update_ID_link_user(ID *id_dst, ID *id_src, const int cd_flag)
id_us_plus(id_dst);
}
else if (cd_flag & IDWALK_USER_ONE) {
- if (id_dst->us == 0) {
- id_us_plus(id_dst);
- }
+ id_us_ensure_real(id_dst);
}
}