[Bf-blender-cvs] [e33b4572af4] master: GPencil: Make visible active layer when hide others
Antonio Vazquez
noreply at git.blender.org
Fri Aug 30 11:26:23 CEST 2019
Commit: e33b4572af45aac41ba6b7a59175972ff504daff
Author: Antonio Vazquez
Date: Fri Aug 30 11:25:49 2019 +0200
Branches: master
https://developer.blender.org/rBe33b4572af45aac41ba6b7a59175972ff504daff
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.
===================================================================
M source/blender/editors/gpencil/gpencil_data.c
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list