Blender Git Commit Log

Git Commits -> Revision 2acebca

Revision 2acebca by Hans Goudey (master)
July 14, 2021, 14:11 (GMT)
Cleanup: Avoid duplication in line art stroke generation

The BKE_gpencil_stroke_add_points API function worked well for
creating the primitives in the add object menu, but it expected a
specific data format that doesn't make sense in a dynamic context.
As evidence of that we can see the way source data was duplicated
in the line art file just to use this API function.

This commit solves that problem in two ways:
- Clean up the line art function (this should make it faster too).
- Move/rename the function so its intended use is more clear.

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

Commit Details:

Full Hash: 2acebcae24a6cb7cc5dcef6ddc437396e129da46
Parent Commit: 3de3c3c
Lines Changed: +69, -85

6 Modified Paths:

/source/blender/blenkernel/BKE_gpencil.h (+0, -11) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+0, -26) (Diff)
/source/blender/editors/gpencil/gpencil_add_monkey.c (+54, -28) (Diff)
/source/blender/editors/gpencil/gpencil_add_stroke.c (+1, -1) (Diff)
/source/blender/editors/include/ED_gpencil.h (+7, -0) (Diff)
/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c (+7, -19) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021