From 172b0ebe6adf8f97ba6ac56df06b103acaa0d3a9 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 16 Sep 2022 11:06:44 +0200 Subject: GPencil: Rename Fill closure methods The new names are: * Radius * Extend The mode Radius + Extend has been removed. Also, some code cleanup and format. --- source/blender/makesrna/intern/rna_brush.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 364805f0395..c11ab4dd23d 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -287,22 +287,8 @@ static EnumPropertyItem rna_enum_gpencil_fill_draw_modes_items[] = { {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem rna_enum_gpencil_fill_extend_modes_items[] = { - {GP_FILL_EMODE_LINES, - "LINES", - 0, - "Line", - "Extend strokes in straight lines"}, - { - GP_FILL_EMODE_CIRCLES, - "CIRCLES", - 0, - "Circle", - "Connect endpoints that are close together"}, - {GP_FILL_EMODE_LINES_AND_CIRCLES, - "LINES_AND_CIRCLES", - 0, - "Line & Circle", - "Extend strokes and connect close endpoints"}, + {GP_FILL_EMODE_RADIUS, "RADIUS", 0, "Radius", "Connect endpoints that are close together"}, + {GP_FILL_EMODE_EXTEND, "EXTEND", 0, "Extend", "Extend strokes in straight lines"}, {0, NULL, 0, NULL, NULL}}; static EnumPropertyItem rna_enum_gpencil_fill_layers_modes_items[] = { @@ -1671,9 +1657,7 @@ static void rna_def_gpencil_options(BlenderRNA *brna) RNA_def_property_enum_sdna(prop, NULL, "fill_extend_mode"); RNA_def_property_enum_items(prop, rna_enum_gpencil_fill_extend_modes_items); RNA_def_property_ui_text( - prop, - "Gap Closure", - "Types of stroke extensions used for closing gaps"); + prop, "Gap Closure", "Types of stroke extensions used for closing gaps"); RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0); /* Number of pixels to dilate fill area. Negative values contract the filled area. */ -- cgit v1.2.3