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>2022-01-14 15:51:30 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-01-14 15:51:30 +0300
commitc0432d5edb23e1c6b70862895efa0599c47ec301 (patch)
tree2eb7f4800322aaf594f66df44ae0846919963be3 /source/blender/editors/gpencil
parent86b7746e3c31f55425016ade1ec5cee05fdfcb05 (diff)
Fix T94089: GPencil Drawing don't Update after paste in Dopesheet
When paste new frames, the datablock need to be tagged to update the drawings.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/editaction_gpencil.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c
index d250f3c44a2..e1907dd1514 100644
--- a/source/blender/editors/gpencil/editaction_gpencil.c
+++ b/source/blender/editors/gpencil/editaction_gpencil.c
@@ -46,6 +46,8 @@
#include "WM_api.h"
+#include "DEG_depsgraph.h"
+
/* ***************************************** */
/* NOTE ABOUT THIS FILE:
* This file contains code for editing Grease Pencil data in the Action Editor
@@ -481,6 +483,9 @@ bool ED_gpencil_anim_copybuf_paste(bAnimContext *ac, const short offset_mode)
/* unapply offset from buffer-frame */
gpfs->framenum -= offset;
}
+
+ /* Tag destination datablock. */
+ DEG_id_tag_update(ale->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
}
/* clean up */