From bbcb4be04fd468b8a93d919b4fc50767817ef701 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 6 Sep 2019 23:33:11 +0200 Subject: Fix T69597: Changing Grease Pencil Layer in Dopesheet unlocks all layers The Dopesheet was unlocked all layers because it was using the same logic used in UI panel, but this was wrong. --- source/blender/editors/animation/anim_channels_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 61b8e4a2341..afd2cdc2a2b 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -3114,7 +3114,7 @@ static int mouse_anim_channels(bContext *C, bAnimContext *ac, int channel_index, ANIM_set_active_channel(ac, ac->data, ac->datatype, filter, gpl, ANIMTYPE_GPLAYER); /* update other layer status */ BKE_gpencil_layer_setactive(gpd, gpl); - BKE_gpencil_layer_autolock_set(gpd); + BKE_gpencil_layer_autolock_set(gpd, false); } /* Grease Pencil updates */ -- cgit v1.2.3