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
parent 733a3e3a70
commit c604d2762f
Notes: blender-bot 2023-02-14 10:04:50 +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

@ -839,12 +839,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 */