diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-08-31 17:42:14 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-08-31 17:48:27 +0300 |
commit | bfd8da753d34881c6f1205938ce9e6e25e3bf4e8 (patch) | |
tree | 35227aeb458ef14d5dc40718fe262e6fd39a8b19 /extern/bullet2 | |
parent | 8fb9f2dbe9cb69476bf1f98c8503e5acd446c5b0 (diff) |
Fix T49210: Issue with User Count on Images in some shader nodetrees when rendering previews
Our usercount handling was really... infuriating :|
Here, localization (i.e. 'shalow' copy that should not touch to usercounts) was incrementing
usercounts of the sole Textures IDs of lamps and worlds (on the weak and fallacious pretext
that related BKE_free... functions would decrement those counts)... Seriously...
So now, localize funcs do not increment any usercount anymore (since matching BKE_free... ones do
not decrement any either), and we do not call anymore that stupid unlink when freeing temp
localized copies of lamps/materials at end of preview generation.
Note that we probably still have a lot to do to cleanup that copy/localize code, pretty sure
we can dedpulicate a lot more.
Diffstat (limited to 'extern/bullet2')
0 files changed, 0 insertions, 0 deletions