Logic Editor: removing usercount for existent datablocks
authorDalai Felinto <dfelinto@gmail.com>
Thu, 27 May 2010 07:37:09 +0000 (07:37 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 27 May 2010 07:37:09 +0000 (07:37 +0000)
commit8872cba7e956a9d9a840e55e5323945497524795
tree6aaf3e97a13cc5b6fccbb1e2ad3bed27a8e3d2d8
parent0db16ff434b4fb4ac35dd8d4525ee85c738528d1
Logic Editor: removing usercount for existent datablocks

Using custom setfuncs to avoid increase/decrease of usercount.
That way nothing stops you from removing a material that is used by a
sensor, or a mesh, an action ... (this is how 2.49 works too)

* also some general code cleaning/fix (adding static casts, replacing libaddr_us by lib_addr for dome text (I had no idea how user count worked back then)
source/blender/blenloader/intern/readfile.c
source/blender/makesrna/intern/rna_actuator.c
source/blender/makesrna/intern/rna_sensor.c