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.
This commit is contained in:
Antonio Vazquez 2020-06-04 16:41:31 +02:00 committed by Jeroen Bakker
parent 2c3ef36a0b
commit 1510c04d41
Notes: blender-bot 2023-02-14 07:31:34 +01:00
Referenced by issue #77358, GPencil: Can't select geometry within transparent layers
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 6 deletions

View File

@ -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 */