Fix T52148: Point Density Texture ID User decrement error related to the Object field.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 28 Jul 2017 10:43:06 +0000 (12:43 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 28 Jul 2017 10:43:06 +0000 (12:43 +0200)
commit05f377805bec3b43a78b45662859d085c1c6e6a0
tree39d52caa4b1cd1f2c0ba9e3ccddd0d76d07de7cf
parentd41acacc61a2ae43ce0537d06eb5b256533d08da
Fix T52148: Point Density Texture ID User decrement error related to the Object field.

Note that fix is not perfect, systematically make refcounting of all IDs
assigned to node's id pointer, which breaks the 'do not refcount
scene/object/text datablocks' principle...

But besides that principle being far from ideal in general, it becomes
pretty much impossible to apply when using //generic// ID pointer,
unless we add some kind of type data to that pointer somehow.

So for now, better to live with that, than having broken usercount.
source/blender/makesrna/intern/rna_nodetree.c