Blender Git Loki

Git Commits -> Revision f11bcbe

Revision f11bcbe by Dalai Felinto (master)
June 27, 2017, 14:56 (GMT)
Fix T51913: Context tab for textures issue

The original code was doing a sanity check to see if existing index was
out of range. However the comparison was wrong.

So if the previous ct->user (active index of texture node) was larger
than then number of available texture nodes + 1 in the other material,
we would never re-set the index to 0.

Bug introduced on c31f74de6bb7.

There was an early attempt of fixing this (2b2ac5d3cc) but it was just working
by pure, luck. And failing in cases like the one from this bug report.

Commit Details:

Full Hash: f11bcbed9d0402db271bc610eaec156583e746fa
Parent Commit: bb0e8f1
Lines Changed: +1, -1

1 Modified Path:

/source/blender/editors/space_buttons/buttons_texture.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021