diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-08-30 12:25:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-08-30 12:26:18 +0300 |
commit | e33b4572af45aac41ba6b7a59175972ff504daff (patch) | |
tree | 4402a798a762f2c71199b5f7d2deae745c7bdf8f /source/blender | |
parent | cc496445518d752d2a2bdad25d7c48115cacd659 (diff) |
GPencil: Make visible active layer when hide others
To make more consistent the UI, when hide all other layers, the active layer is always set to visble.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_data.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index c22e3bda0b1..34beceddfa2 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -840,6 +840,10 @@ static int gp_hide_exec(bContext *C, wmOperator *op) if (gpl != layer) { gpl->flag |= GP_LAYER_HIDE; } + else { + /* Be sure the active layer is unhidden. */ + gpl->flag &= ~GP_LAYER_HIDE; + } } } else { |