[Bf-blender-cvs] [1d478851f84] master: GPencil: Avoid double depsgraph tag
Antonio Vazquez
noreply at git.blender.org
Wed Sep 29 19:22:02 CEST 2021
Commit: 1d478851f847047ad6253e8599407b138bc8d70e
Author: Antonio Vazquez
Date: Wed Sep 29 19:21:29 2021 +0200
Branches: master
https://developer.blender.org/rB1d478851f847047ad6253e8599407b138bc8d70e
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.
===================================================================
M source/blender/editors/gpencil/gpencil_paint.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list