Blender Git Commit Log

Git Commits -> Revision 1032089

Revision 1032089 by Bastien Montagne (master)
April 15, 2016, 11:19 (GMT)
Fix T48151: Brush texture overlay won't refresh automatically in UV editor when changed in buttons window.

Simple solution is to get rid of this stupid `rna_TextureSlot_brush_update` func, and do what it was doing directly
in BR case of `rna_TextureSlot_update`. That way, all updates to brush texture will invalidate correctly the overlay.

Note that this double definition of texture pointer for brushes looks rather fishy, am really not convinced this helps
keeping things simple and clear at all (what happened here is that texture selector in image paint editor was using
'texture' member of brush itself, which was performing correct RNA update, while context-based brush texture selector
from buttons space was using 'texture' member of the TextureSlot struct, which had default texture update callback
which was not invalidating overlay).

Commit Details:

Full Hash: 10320891f0468716e3f4029c3136f3b86587cef2
Parent Commit: 8ac662c
Lines Changed: +13, -28

3 Modified Paths:

/source/blender/makesrna/intern/rna_brush.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+7, -21) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021