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:
authorJoshua Leung <aligorith@gmail.com>2016-03-27 17:05:01 +0300
committerJoshua Leung <aligorith@gmail.com>2016-03-27 17:21:30 +0300
commitfd8f51da0854eb280689adc690b61051f7bdac51 (patch)
tree25f542d02358bd55096f959155e8903b8a6165ef /source/blender/editors/gpencil
parente78a929d68e1479f32cd4ffaaec6debfa91d9fe3 (diff)
GPencil: Removed the restriction of not subdividing strokes further if it exceeds GP_STROKE_BUFFER_MAX
Assuming that this subdivision + smoothing mostly only happens at the end of a stroke anyway, enforcing this max-points limit in some cases was resulting in strokes that weren't quite getting subdivided properly as the others.
Diffstat (limited to 'source/blender/editors/gpencil')
-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");