diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-10 10:31:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-10 10:31:54 +0300 |
commit | 3f837341c8f5652f02909d1ebbcf1743ab371847 (patch) | |
tree | 7150da12afd8c96842286c0e5401f358cde196ba /source/blender/makesrna/intern/rna_main_api.c | |
parent | 98d89cef6b9727e3cf98f2f69829d897f26bcf7b (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.c | 3 |
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; } |