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-10-04 18:08:00 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-10-04 18:08:16 +0300
commitf2c896a9ad171e20dc291b60ed4c96a4e6a9456f (patch)
tree91251d13e2f929a086e1d01630fa6a4d123427bd /source/blender/editors/gpencil/gpencil_paint.c
parent2b6f2072f1eecd43080821bb7b55f5313f890ddb (diff)
GPencil: Simplify code removing extra function
The function was not doing anything and only was calling another function.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index bf49203f915..ffc50a86fc6 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -281,14 +281,6 @@ static void gpencil_update_cache(bGPdata *gpd)
}
}
-static void gpencil_stroke_added_enable(tGPsdata *p)
-{
- BLI_assert(p->gpf->strokes.last != NULL);
-
- /* drawing batch cache is dirty now */
- gpencil_update_cache(p->gpd);
-}
-
/* ------ */
/* Forward defines for some functions... */
@@ -1322,7 +1314,7 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p)
BKE_gpencil_stroke_copy_to_keyframes(gpd, gpl, p->gpf, gps, tail);
}
- gpencil_stroke_added_enable(p);
+ gpencil_update_cache(p->gpd);
}
/* --- 'Eraser' for 'Paint' Tool ------ */