From 4d62bb8fe57ca431da669386d47ca185f3624c9a Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 21 Sep 2020 19:53:36 +0200 Subject: GPencil: New Trace images using Potrace This patch adds a new operator to convert a black and white image into grease pencil strokes. If the image is not B/W, an internal conversion is done. This is the first operator using Potrace, but we expect to add more features in next Blender versions. Reviewed By: HooglyBoogly Maniphest Tasks: T79877 Differential Revision: https://developer.blender.org/D8951 --- source/blender/editors/gpencil/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/blender/editors/gpencil/CMakeLists.txt') diff --git a/source/blender/editors/gpencil/CMakeLists.txt b/source/blender/editors/gpencil/CMakeLists.txt index 20408327105..7bf8a93a97c 100644 --- a/source/blender/editors/gpencil/CMakeLists.txt +++ b/source/blender/editors/gpencil/CMakeLists.txt @@ -29,6 +29,7 @@ set(INC ../../windowmanager ../../../../intern/glew-mx ../../../../intern/guardedalloc + ../../../../extern/potrace/src ) set(SRC @@ -60,6 +61,7 @@ set(SRC gpencil_weight_paint.c gpencil_intern.h + gpencil_trace.h ) set(LIB @@ -67,6 +69,20 @@ set(LIB bf_blenlib ) +if(WITH_POTRACE) + list(APPEND SRC + gpencil_trace_ops.c + gpencil_trace_utils.c + ) + list(APPEND INC + ${POTRACE_INCLUDE_DIRS} + ) + list(APPEND LIB + ${POTRACE_LIBRARIES} + ) + add_definitions(-DWITH_POTRACE) +endif() + if(WITH_INTERNATIONAL) add_definitions(-DWITH_INTERNATIONAL) endif() -- cgit v1.2.3