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-11 22:18:50 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-11 22:21:37 +0300
commitd75bca1842fcea6af3f8b398b498d3e4ab91dbc5 (patch)
tree023a296cfa67c73346d813fff9b5a3e8f8e7aab2 /source/blender/blenkernel/intern/brush.c
parent9cff20e5c6ee9675087bc847964c11a4d565f803 (diff)
Cleanup: replace more direct id->us handling by calls to BKE_library API.
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 92ab4d745c1..166c2b26d27 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -281,7 +281,7 @@ void BKE_brush_make_local(Brush *brush)
}
else if (is_local && is_lib) {
Brush *brush_new = BKE_brush_copy(brush); /* Ensures FAKE_USER is set */
- brush_new->id.us = 1; /* only keep fake user */
+ id_us_min(&brush_new->id); /* Remove user added by standard BKE_libblock_copy(). */
/* Remap paths of new ID using old library as base. */
BKE_id_lib_local_paths(bmain, brush->id.lib, &brush_new->id);