Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-06-29 20:43:03 +0300
committerHans Goudey <h.goudey@me.com>2021-06-29 20:43:03 +0300
commit9b8b4a5ab86516b9948b97928d945cd7be76a2d7 (patch)
treec195dd127687e18352346d87a6f62e8b626a0b4e /source/blender/draw/intern/draw_cache_impl_gpencil.c
parent5be17e92c56f84acc455f4c59f70148b1f002ffd (diff)
Move active index to geometry
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_gpencil.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_gpencil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c
index cca3e8a8b3c..3c82b4d4b6f 100644
--- a/source/blender/draw/intern/draw_cache_impl_gpencil.c
+++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c
@@ -843,7 +843,7 @@ static void gpencil_edit_batches_ensure(Object *ob, GpencilBatchCache *cache, in
int vert_len = GPU_vertbuf_get_vertex_len(cache->vbo);
gpEditIterData iter;
- iter.vgindex = ob->actdef - 1;
+ iter.vgindex = BKE_object_defgroup_active_index_get(ob) - 1;
if (!BLI_findlink(&gpd->vertex_group_names, iter.vgindex)) {
iter.vgindex = -1;
}