Blender Git Loki

Git Commits -> Revision c26a4be

Revision c26a4be by Bastien Montagne (master)
August 21, 2013, 21:35 (GMT)
Fix [#36530] Texture tab refreshing problem

That was not really a bug (code working as expected), but the way tex context was handled was a bit raw, now it is much smarter:
* Default fallback context (when current one is no more valid) will now choose "most specific" ones first (i.e. material/lamp/particules before world and "others").
* When using that default fallback context, previous one is stored and we try to revive it later, if possible. Thus e.g. object[mat tex ctxt] -> empty[default world ctxt] -> object[mat tex ctxt] is now working as expected.
* However, when user explicitely or implicitely (through e.g. going to Material context...) sets a tex context, previous one is not stored, so that only default fallback context switch may later automatically revive a previous (presumably user-set) context.

Commit Details:

Full Hash: c26a4be5c013650f339f446185339aa71f2b88c4
SVN Revision: 59374
Parent Commit: 2a5b6d9
Lines Changed: +38, -15

3 Modified Paths:

/source/blender/editors/space_buttons/buttons_texture.c (+25, -12) (Diff)
/source/blender/makesdna/DNA_space_types.h (+3, -2) (Diff)
/source/blender/makesrna/intern/rna_space.c (+10, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021