Cleanup: use "use_" prefix for boolean types
This commit is contained in:
parent
c109a39995
commit
34b213d604
Notes:
blender-bot
2023-02-14 08:06:33 +01:00
Referenced by commit 54b72fe9ff
, GPencil: Fix Noise Modifier Randomize Panel disabled
|
@ -313,7 +313,7 @@ static void random_header_draw(const bContext *UNUSED(C), Panel *panel)
|
|||
|
||||
PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL);
|
||||
|
||||
uiItemR(layout, ptr, "random", 0, IFACE_("Randomize"), ICON_NONE);
|
||||
uiItemR(layout, ptr, "use_random", 0, IFACE_("Randomize"), ICON_NONE);
|
||||
}
|
||||
|
||||
static void random_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
||||
|
|
|
@ -701,7 +701,7 @@ static void rna_def_modifier_gpencilnoise(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "UV Factor", "Amount of noise to apply uv rotation");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "random", PROP_BOOLEAN, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "use_random", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_NOISE_USE_RANDOM);
|
||||
RNA_def_property_ui_text(prop, "Random", "Use random values over time");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
|
Loading…
Reference in New Issue