diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-09-03 19:58:57 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-09-03 19:59:12 +0300 |
commit | 1abb1ba9a353b5d377da20ae4b41d3cf3439857a (patch) | |
tree | 364c177747bd45973698a54b160e25a61377b4e3 /source/blender/editors/space_action/action_select.c | |
parent | e91ea20ebee800600ec073f9738b448778372453 (diff) |
GPencil: Fix unreported autolock layers using Dopesheet
When select a layer in Dopesheet, the autolock layer was not working.
Now the Dopesheet code calls the function for autolock. Also some code cleanup to move the logic to new function.
Diffstat (limited to 'source/blender/editors/space_action/action_select.c')
-rw-r--r-- | source/blender/editors/space_action/action_select.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index 8504ab9f469..cbf4d0628e6 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -1724,6 +1724,7 @@ static void mouse_action_keys(bAnimContext *ac, /* Update other layer status. */ if (BKE_gpencil_layer_getactive(gpd) != gpl) { BKE_gpencil_layer_setactive(gpd, gpl); + BKE_gpencil_layer_autolock_set(gpd); WM_main_add_notifier(NC_GPENCIL | ND_DATA | NA_EDITED, NULL); } } |