[Bf-blender-cvs] [491ee6f15a5] temp-lineart-contained: GPencil: Rename prop `dilate_pixels` to `dilate`

Antonio Vazquez noreply at git.blender.org
Wed May 12 04:15:50 CEST 2021


Commit: 491ee6f15a5cd237bd75296002a593d2e2eaa507
Author: Antonio Vazquez
Date:   Mon May 10 16:26:15 2021 +0200
Branches: temp-lineart-contained
https://developer.blender.org/rB491ee6f15a5cd237bd75296002a593d2e2eaa507

GPencil: Rename prop `dilate_pixels` to `dilate`

Better avoid units in name.

===================================================================

M	release/scripts/startup/bl_ui/properties_paint_common.py
M	source/blender/makesrna/intern/rna_brush.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list