Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-12-05 12:19:49 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-12-05 12:19:49 +0300
commit2f05c79db37c053a646cdd059ded90e2743427ed (patch)
tree30c294b8e32e76d6b9500dcb9117a9c77d14de64 /source/blender/editors/animation/anim_channels_edit.c
parentf4b7d57551061350216048d5d30b9b674f741c28 (diff)
Fix T72182: Fade Layers Option does not work when activating a layer from Dope Sheet or Outliner
The layer was activated, but the datablock was not tagged to recalc GPU cache.
Diffstat (limited to 'source/blender/editors/animation/anim_channels_edit.c')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index 0fc137295d0..e0b8d485386 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -3115,6 +3115,8 @@ static int mouse_anim_channels(bContext *C, bAnimContext *ac, int channel_index,
/* update other layer status */
BKE_gpencil_layer_setactive(gpd, gpl);
BKE_gpencil_layer_autolock_set(gpd, false);
+ DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY);
+ WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_SELECTED, gpd);
}
/* Grease Pencil updates */