[Bf-blender-cvs] [6bcebe7d744] temp-lineart-embree: Cleanup: use "use_" prefix for booleans

Campbell Barton noreply at git.blender.org
Sat Mar 26 17:11:00 CET 2022


Commit: 6bcebe7d74470c9bc10f46889ad5ab78d592ad4d
Author: Campbell Barton
Date:   Sat Mar 26 18:04:27 2022 +1100
Branches: temp-lineart-embree
https://developer.blender.org/rB6bcebe7d74470c9bc10f46889ad5ab78d592ad4d

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