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:
authorCampbell Barton <ideasman42@gmail.com>2018-01-10 10:31:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-10 10:31:54 +0300
commit3f837341c8f5652f02909d1ebbcf1743ab371847 (patch)
tree7150da12afd8c96842286c0e5401f358cde196ba /source/blender/makesrna/intern/rna_main_api.c
parent98d89cef6b9727e3cf98f2f69829d897f26bcf7b (diff)
Correction to brush user commit
RNA API was compensating for the extra user.
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index 7e2ced81a6d..992e4f034ec 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -421,7 +421,8 @@ static Brush *rna_Main_brushes_new(Main *bmain, const char *name, int mode)
rna_idname_validate(name, safe_name);
Brush *brush = BKE_brush_add(bmain, safe_name, mode);
- id_us_min(&brush->id);
+ /* Brushes have a single fake user, leave this as is. */
+ // id_us_min(&brush->id);
return brush;
}