Blender Git Commit Log

Git Commits -> Revision e9607f4

Revision e9607f4 by Antonio Vazquez (master)
November 18, 2020, 20:35 (GMT)
GPencil: Automerge last drawn stroke with previous strokes

This option joins any stroke with an end near the actual stroke. Now it is not limited to the last stroke, any stroke in the same layer for the actual frame can be joined. The join can join two strokes drawing a third stroke.

If the end and the start of the result stroke are very small, the stroke is changed to be cyclic automatically.

There is a limit distance to join the stroke, if the distance is greater than this value, the strokes are not joined. Actually, a constant, threshold distance is used, but we could expose
as a parameter in the UI in the future.

The tool can be used with freehand drawing or with primitives.

Note: Great part of the patch is just a refactor of the old code to make it accessible and to keep code organized.

Reviewed By: mendio

Maniphest Tasks: T82377

Differential Revision: https://developer.blender.org/D9440

Commit Details:

Full Hash: e9607f45d85df6df834a80f147b8c42ff12f56f2
Parent Commit: c126e27
Lines Changed: +910, -597

14 Modified Paths:

/release/scripts/startup/bl_ui/space_view3d.py (+2, -0) (Diff)
/source/blender/blenkernel/BKE_gpencil_geom.h (+25, -0) (Diff)
/source/blender/blenkernel/intern/gpencil_geom.c (+584, -0) (Diff)
/source/blender/editors/gpencil/annotate_paint.c (+3, -1) (Diff)
/source/blender/editors/gpencil/gpencil_convert.c (+2, -1) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+11, -561) (Diff)
/source/blender/editors/gpencil/gpencil_intern.h (+28, -32) (Diff)
/source/blender/editors/gpencil/gpencil_merge.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+21, -1) (Diff)
/source/blender/editors/gpencil/gpencil_primitive.c (+25, -0) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+178, -0) (Diff)
/source/blender/editors/include/ED_gpencil.h (+18, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+10, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021