Fix T90742: Gpencil ghost point on selection

Reviewed By: fclem, filedescriptor

Maniphest Tasks: T90742

Differential Revision: https://developer.blender.org/D12259
This commit is contained in:
Henrik Dick 2021-08-30 15:16:39 +02:00 committed by Antonio Vazquez
parent 9ad56627cf
commit e76f04c870
Notes: blender-bot 2023-02-14 09:02:40 +01:00
Referenced by issue #90742, GPencil: Ghost point on selection
1 changed files with 2 additions and 0 deletions

View File

@ -446,6 +446,8 @@ static void gpencil_batches_ensure(Object *ob, GpencilBatchCache *cache, int cfr
for (int i = 0; i < 2; i++) {
iter.verts[iter.vert_len + i].mat = -1;
}
/* Also mark first vert as invalid. */
iter.verts[0].mat = -1;
/* Finish the IBO. */
cache->ibo = GPU_indexbuf_build(&iter.ibo);