diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-04-17 23:04:10 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-04-17 23:04:10 +0300 |
commit | a6c14faa06a88acd1c803c6b723d030de4467e73 (patch) | |
tree | d5b3472afc12da9c32ab5393d85288cf8b1b2323 | |
parent | 59d7fbb052bcb7949420fb9ad694d8e69992c846 (diff) | |
parent | 76b3aac802f9feb2c32f2afcb54b86240a59766e (diff) |
Merge branch 'blender-v2.83-release'
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_gpencil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_gpencil.c b/source/blender/draw/engines/overlay/overlay_gpencil.c index c96c448c63b..0dbb0542b18 100644 --- a/source/blender/draw/engines/overlay/overlay_gpencil.c +++ b/source/blender/draw/engines/overlay/overlay_gpencil.c @@ -267,6 +267,11 @@ static void OVERLAY_edit_gpencil_cache_populate(OVERLAY_Data *vedata, Object *ob const DRWContextState *draw_ctx = DRW_context_state_get(); View3D *v3d = draw_ctx->v3d; + /* Overlay is only for active object. */ + if (ob != draw_ctx->obact) { + return; + } + if (pd->edit_gpencil_wires_grp) { DRWShadingGroup *grp = DRW_shgroup_create_sub(pd->edit_gpencil_wires_grp); DRW_shgroup_uniform_vec4_copy(grp, "gpEditColor", gpd->line_color); |