Blender Git Loki

Git Commits -> Revision bfd8da7

Revision bfd8da7 by Bastien Montagne (master)
August 31, 2016, 14:48 (GMT)
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.

Commit Details:

Full Hash: bfd8da753d34881c6f1205938ce9e6e25e3bf4e8
Parent Commit: 8fb9f2d
Lines Changed: +1, -8

3 Modified Paths:

/source/blender/blenkernel/intern/lamp.c (+0, -2) (Diff)
/source/blender/blenkernel/intern/world.c (+0, -2) (Diff)
/source/blender/editors/render/render_preview.c (+1, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021