diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-10 11:34:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-10 11:34:34 +0300 |
commit | bc02c5de497c360449e4de68b3c1432f9bd204de (patch) | |
tree | 111d0c60c82ac0221e47a31846f646aa187348dd /source/blender/makesrna/intern/rna_main_api.c | |
parent | 3f837341c8f5652f02909d1ebbcf1743ab371847 (diff) |
Alternate fix for brush user count
This reverts change to BKE_brush_add,
callers now remove the extra user.
Note this isn't very convenient for callers but
is consistent with other ID types.
In the future we will probably remove this and have new
ID's created with zero users.
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, 1 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index 992e4f034ec..7e2ced81a6d 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -421,8 +421,7 @@ 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); - /* Brushes have a single fake user, leave this as is. */ - // id_us_min(&brush->id); + id_us_min(&brush->id); return brush; } |