Blender Git Commit Log
Git Commits -> Revision 3cbf246
Revision 3cbf246 by Clément Foucault (master) August 19, 2019, 15:02 (GMT) |
Fix T68719 Viewport: Wrong material index when switching between view mode This was due to the GPUIndexBuf ranges only computed when requesting the triangles indices. If the tris were already calculated, the new shading batches would never have the GPUIndexBuf ranges and instead use the full triangle index buffer. So since this only happen when shading data does not match, we just save the previous GPUIndexBuf ranges and reuse them for the new batch. This patch is a bit of a hack on top of a hack but it works fine. |
Commit Details:
Full Hash: 3cbf2462391c4adecd5be0bcd3e9654d494d9ed2
Parent Commit: 0b2e087
Lines Changed: +21, -1
1 Modified Path:
/source/blender/draw/intern/draw_cache_impl_mesh.c (+21, -1) (Diff)