GPencil: New operator to convert strokes to perimeter.

This operator converts any stroke of gpencil with a center line into a stroke with the perimeter.

It's possible to assign the active material, keep current or create a new material for all perimeters.

The conversion is only done for strokes with a material using `Stroke`. Only `Fill` strokes are not converted.

Known issues: As the perimter has not boolean implementation, some perimeters can be overlaped. This could be solved in the future when a new 2D boolean library will be developed.

Reviewed By: mendio, pepeland, frogstomp

Differential Revision: https://developer.blender.org/D15664
This commit is contained in:
2022-08-18 16:19:03 +02:00
parent 4d4a84bbeb
commit aa7b2f1dd9
4 changed files with 268 additions and 0 deletions

View File

@@ -5178,6 +5178,9 @@ class VIEW3D_MT_edit_gpencil_stroke(Menu):
layout.separator()
layout.operator("gpencil.reset_transform_fill", text="Reset Fill Transform")
layout.separator()
layout.operator("gpencil.stroke_outline", text="Outline")
class VIEW3D_MT_edit_gpencil_point(Menu):
bl_label = "Point"