diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-09-21 20:53:36 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-09-21 21:03:25 +0300 |
commit | 4d62bb8fe57ca431da669386d47ca185f3624c9a (patch) | |
tree | a24b120668693b3f99f99aa5c7c2175e679c3d01 /source/blender/editors/gpencil/gpencil_ops.c | |
parent | d93db4f30c9c435d84ff35529036368261c9b0db (diff) |
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
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_ops.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c index 211ff895e67..9f7725e01f5 100644 --- a/source/blender/editors/gpencil/gpencil_ops.c +++ b/source/blender/editors/gpencil/gpencil_ops.c @@ -606,7 +606,9 @@ void ED_operatortypes_gpencil(void) WM_operatortype_append(GPENCIL_OT_bake_mesh_animation); WM_operatortype_append(GPENCIL_OT_image_to_grease_pencil); - +#ifdef WITH_POTRACE + WM_operatortype_append(GPENCIL_OT_trace_image); +#endif WM_operatortype_append(GPENCIL_OT_stroke_arrange); WM_operatortype_append(GPENCIL_OT_stroke_change_color); WM_operatortype_append(GPENCIL_OT_material_lock_unused); |