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).
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user