From c3de3c274958659e43b14c957e92ad044d00861a Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 10 May 2021 16:26:15 +0200 Subject: GPencil: Rename prop `dilate_pixels` to `dilate` Better avoid units in name. --- release/scripts/startup/bl_ui/properties_paint_common.py | 2 +- source/blender/makesrna/intern/rna_brush.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 4e3e4c2d58d..f3462dfb35d 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -1225,7 +1225,7 @@ def brush_basic_gpencil_paint_settings(layout, context, brush, *, compact=False) row = layout.row(align=True) row.prop(gp_settings, "fill_factor") row = layout.row(align=True) - row.prop(gp_settings, "dilate_pixels") + row.prop(gp_settings, "dilate") row = layout.row(align=True) row.prop(brush, "size", text="Thickness") layout.use_property_split = use_property_split_prev diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 044e6ca2da1..7e1d513502c 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -1618,7 +1618,7 @@ static void rna_def_gpencil_options(BlenderRNA *brna) RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0); /* Number of pixels to dilate fill area. */ - prop = RNA_def_property(srna, "dilate_pixels", PROP_INT, PROP_NONE); + prop = RNA_def_property(srna, "dilate", PROP_INT, PROP_PIXEL); RNA_def_property_int_sdna(prop, NULL, "dilate_pixels"); RNA_def_property_range(prop, 0, 20); RNA_def_property_int_default(prop, 1); -- cgit v1.2.3