diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-09-16 12:06:44 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-09-17 13:30:13 +0300 |
commit | 172b0ebe6adf8f97ba6ac56df06b103acaa0d3a9 (patch) | |
tree | 804745cc1563e52d5a43cf1675538fe296043735 /source/blender/makesrna/intern | |
parent | 468f2ccc0ecbcb368aab950c61c2cc0bc95b27e1 (diff) |
GPencil: Rename Fill closure methods
The new names are:
* Radius
* Extend
The mode Radius + Extend has been removed.
Also, some code cleanup and format.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 22 |
1 files changed, 3 insertions, 19 deletions
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. */ |