Alternate fix for brush user count
authorCampbell Barton <ideasman42@gmail.com>
Wed, 10 Jan 2018 08:34:34 +0000 (19:34 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 10 Jan 2018 08:34:34 +0000 (19:34 +1100)
commitbc02c5de497c360449e4de68b3c1432f9bd204de
tree111d0c60c82ac0221e47a31846f646aa187348dd
parent3f837341c8f5652f02909d1ebbcf1743ab371847
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.
source/blender/blenkernel/intern/brush.c
source/blender/blenkernel/intern/paint.c
source/blender/blenloader/intern/versioning_defaults.c
source/blender/editors/sculpt_paint/paint_ops.c
source/blender/makesrna/intern/rna_main_api.c