From b1ce4ca40c03ab2562863ef8056adc3b2aff5c10 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 19 Jun 2020 10:09:51 +0200 Subject: Fix T77997: GPencil insert keyframe on timeline doen't update viewport The reason was the datablock is changed but it was not tagged for depsgraph refresh. In some cases it could be possible to tag several times the same datablock, but as this is not the case all the times and the number of tags is always very small, it doesn't worth a complex code to keep a memory list of the datablocks to tag. --- source/blender/blenkernel/BKE_gpencil.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_gpencil.h') diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index 85ba8175143..cd434566e43 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -96,6 +96,7 @@ void BKE_gpencil_free_layers(struct ListBase *list); void BKE_gpencil_free(struct bGPdata *gpd, bool free_all); void BKE_gpencil_eval_delete(struct bGPdata *gpd_eval); void BKE_gpencil_free_layer_masks(struct bGPDlayer *gpl); +void BKE_gpencil_tag(struct bGPdata *gpd); void BKE_gpencil_batch_cache_dirty_tag(struct bGPdata *gpd); void BKE_gpencil_batch_cache_free(struct bGPdata *gpd); -- cgit v1.2.3