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>2021-09-29 20:21:29 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-09-29 20:21:54 +0300
commit1d478851f847047ad6253e8599407b138bc8d70e (patch)
treeb8f52443b6e6d90ed64cd1f74b58d4ace358d546
parent214baf5422607edf45d0b24b6fdf3710964224f8 (diff)
GPencil: Avoid double depsgraph tag
The eval data is updated at the end of the function and this call just adds a calculation not used.
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 9b157224178..957d8087bbd 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1001,8 +1001,6 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p)
gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");
gps->dvert = NULL;
- /* drawing batch cache is dirty now */
- gpencil_update_cache(p->gpd);
/* set pointer to first non-initialized point */
pt = gps->points + (gps->totpoints - totelem);
if (gps->dvert != NULL) {