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
This commit is contained in:
@@ -341,5 +341,8 @@ if(WITH_XR_OPENXR)
|
||||
add_definitions(-DWITH_XR_OPENXR)
|
||||
endif()
|
||||
|
||||
if(WITH_POTRACE)
|
||||
add_definitions(-DWITH_POTRACE)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
|
@@ -61,6 +61,7 @@ static PyStructSequence_Field app_builtopts_info_fields[] = {
|
||||
{"usd", NULL},
|
||||
{"fluid", NULL},
|
||||
{"xr_openxr", NULL},
|
||||
{"potrace", NULL},
|
||||
{NULL},
|
||||
};
|
||||
|
||||
@@ -282,6 +283,12 @@ static PyObject *make_builtopts_info(void)
|
||||
SetObjIncref(Py_False);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_POTRACE
|
||||
SetObjIncref(Py_True);
|
||||
#else
|
||||
SetObjIncref(Py_False);
|
||||
#endif
|
||||
|
||||
#undef SetObjIncref
|
||||
|
||||
return builtopts_info;
|
||||
|
Reference in New Issue
Block a user