[Bf-blender-cvs] [c01afe9562a] master: Cleanup: use "use_" prefix for booleans

Campbell Barton noreply at git.blender.org
Sat Mar 26 08:44:03 CET 2022


Commit: c01afe9562a9439e38cfe917c993c161b815cc94
Author: Campbell Barton
Date:   Sat Mar 26 18:04:27 2022 +1100
Branches: master
https://developer.blender.org/rBc01afe9562a9439e38cfe917c993c161b815cc94

Cleanup: use "use_" prefix for booleans

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

M	source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
M	source/blender/makesrna/intern/rna_gpencil_modifier.c

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
index eb51a247d87..1992ebd1508 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
@@ -178,7 +178,7 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel)
 
   col = uiLayoutColumn(layout, false);
   uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_edit_position"));
-  uiItemR(col, ptr, "keep_shape", 0, NULL, ICON_NONE);
+  uiItemR(col, ptr, "use_keep_shape", 0, NULL, ICON_NONE);
 
   gpencil_modifier_panel_end(layout, ptr);
 }
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c
index 9e25ddaf790..81103f4fe49 100644
--- a/source/blender/makesrna/intern/rna_gpencil_modifier.c
+++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c
@@ -1031,7 +1031,7 @@ static void rna_def_modifier_gpencilsmooth(BlenderRNA *brna)
       prop, "Step", "Number of times to apply smooth (high numbers can reduce fps)");
   RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
 
-  prop = RNA_def_property(srna, "keep_shape", PROP_BOOLEAN, PROP_NONE);
+  prop = RNA_def_property(srna, "use_keep_shape", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_SMOOTH_KEEP_SHAPE);
   RNA_def_property_ui_text(prop, "Keep Shape", "Smooth the details, but keep the overall shape");
   RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");



More information about the Bf-blender-cvs mailing list