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:
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index de743033036..3e85bf2adfd 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -365,6 +365,14 @@ class GPENCIL_MT_cleanup(Menu):
if ob.mode != 'PAINT_GPENCIL':
layout.operator("gpencil.reproject")
+class GPENCIL_MT_stroke_type(Menu):
+ bl_label = "Set Stroke Type"
+
+ def draw(self, contect):
+ layout = self.layout
+ layout.operator("gpencil.stroke_set_type", text="Poly", icon='OUTLINER_DATA_GREASEPENCIL').type = 'POLY'
+ layout.operator("gpencil.stroke_set_type", text="Bézier", icon='HANDLE_ALIGNED').type = 'BEZIER'
+
class GPENCIL_UL_annotation_layer(UIList):
def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):
@@ -923,6 +931,7 @@ classes = (
GPENCIL_MT_move_to_layer,
GPENCIL_MT_layer_active,
GPENCIL_MT_material_active,
+ GPENCIL_MT_stroke_type,
GPENCIL_MT_gpencil_draw_delete,
GPENCIL_MT_layer_mask_menu,