From 2f05c79db37c053a646cdd059ded90e2743427ed Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Thu, 5 Dec 2019 10:19:49 +0100 Subject: 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. --- source/blender/editors/space_outliner/outliner_draw.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_outliner/outliner_draw.c') diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 11f18357f7b..d25bca2dc0e 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -818,6 +818,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname) BLI_uniquename( &gpd->layers, gpl, "GP Layer", '.', offsetof(bGPDlayer, info), sizeof(gpl->info)); + DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY); WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_SELECTED, gpd); break; } -- cgit v1.2.3