Blender Git Loki

Git Commits -> Revision 56005ef

Revision 56005ef by Philipp Oeser (master)
June 4, 2021, 14:02 (GMT)
Texture Paint: changing paint slots and viewport could go out of sync

When changing to another texture paint slot, the texture displayed in
the viewport should change accordingly (as well as the image displayed
in the Image Editor).

The procedure to find the texture to display in the viewport
(BKE_texpaint_slot_material_find_node) could fail
though because it assumed iterating nodes would always happen in the
same order (it was index based). This is not the case though, nodes can
get sorted differently based on selection (see ED_node_sort).

Now check the actual image being referenced in the paint slot for
comparison.

ref T88788 (probably enough to call this a fix, the other issue(s)
mentioned in the report are more likely a feature request)

Reviewed By: mano-wii

Maniphest Tasks: T88788

Differential Revision: https://developer.blender.org/D11496

Commit Details:

Full Hash: 56005ef499894bcd48313e3df7ec965fe516c1dc
Parent Commit: b6d6d8a
Lines Changed: +7, -7

1 Modified Path:

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