Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-08-30 12:25:49 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-08-30 12:26:18 +0300
commite33b4572af45aac41ba6b7a59175972ff504daff (patch)
tree4402a798a762f2c71199b5f7d2deae745c7bdf8f
parentcc496445518d752d2a2bdad25d7c48115cacd659 (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.
-rw-r--r--source/blender/editors/gpencil/gpencil_data.c4
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 {