From 7a0ab62d3f65f3b28da2a6ba9916c21132f8ea0d Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 26 Jun 2012 00:35:05 +0000 Subject: Bugfix [#31930] DopeSheet - Grease Pencil mode collapses visible channels when switch channel This was caused by a typo, which would end up toggling the expanded status of the Grease Pencil datablock (gpd->flag & 4) instead of the layer active status (gpl->flag & 4). --- source/blender/editors/gpencil/gpencil_buttons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/gpencil/gpencil_buttons.c b/source/blender/editors/gpencil/gpencil_buttons.c index dabc0ad1081..d90ec02b0c1 100644 --- a/source/blender/editors/gpencil/gpencil_buttons.c +++ b/source/blender/editors/gpencil/gpencil_buttons.c @@ -126,7 +126,7 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons block = uiLayoutGetBlock(sub); icon = (gpl->flag & GP_LAYER_ACTIVE) ? ICON_RADIOBUT_ON : ICON_RADIOBUT_OFF; but = uiDefIconButBitI(block, TOG, GP_LAYER_ACTIVE, 0, icon, 0, 0, UI_UNIT_X, UI_UNIT_Y, - &gpd->flag, 0.0, 0.0, 0.0, 0.0, TIP_("Set active layer")); + &gpl->flag, 0.0, 0.0, 0.0, 0.0, TIP_("Set active layer")); uiButSetFunc(but, gp_ui_activelayer_cb, gpd, gpl); /* locked */ -- cgit v1.2.3