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:
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index ac949775fd0..8bbc10b4676 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -616,12 +616,6 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
int new_totpoints = gps->totpoints;
for (i = 0; i < sublevel; i++) {
- /* Avoid error if subdivide is too big (assume totpoints is right) */
- if (new_totpoints + (new_totpoints - 1) > GP_STROKE_BUFFER_MAX) {
- /* Reduce sublevel to avoid too-dense strokes */
- sublevel = i;
- break;
- }
new_totpoints += new_totpoints - 1;
}
gps->points = MEM_callocN(sizeof(bGPDspoint) * new_totpoints, "gp_stroke_points");