Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-09-21 20:53:36 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-09-21 21:03:25 +0300
commit4d62bb8fe57ca431da669386d47ca185f3624c9a (patch)
treea24b120668693b3f99f99aa5c7c2175e679c3d01 /release
parentd93db4f30c9c435d84ff35529036368261c9b0db (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 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 351654f61e4..888b4a62139 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2260,6 +2260,11 @@ class VIEW3D_MT_object(Menu):
else:
layout.operator_menu_enum("object.convert", "target")
+ # Potrace lib dependency
+ if bpy.app.build_options.potrace:
+ layout.separator()
+ layout.operator("gpencil.trace_image")
+
layout.separator()
layout.menu("VIEW3D_MT_object_showhide")