diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-06-04 17:41:31 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-06-11 09:33:47 +0300 |
commit | 1510c04d4173987c207ae246c164ef0f1bdc2de8 (patch) | |
tree | 61ca010ea676460aa576b09a094c07dae7f37cae /source | |
parent | 2c3ef36a0b7fe301e32137a17635ceefaa1de791 (diff) |
Fix T77358: Gpencil can't select geometry within transparent layers
This was an old check of opacity for editable layers, but with new system it's not needed because you can use the edit lines.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/gpencil.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c index 1f6c0e96519..f543e95f835 100644 --- a/source/blender/blenkernel/intern/gpencil.c +++ b/source/blender/blenkernel/intern/gpencil.c @@ -824,12 +824,7 @@ bool BKE_gpencil_layer_is_editable(const bGPDlayer *gpl) /* Layer must be: Visible + Editable */ if ((gpl->flag & (GP_LAYER_HIDE | GP_LAYER_LOCKED)) == 0) { - /* Opacity must be sufficiently high that it is still "visible" - * Otherwise, it's not really "visible" to the user, so no point editing... - */ - if (gpl->opacity > GPENCIL_ALPHA_OPACITY_THRESH) { - return true; - } + return true; } /* Something failed */ |