From bdb4233279ea4cc7aabec24565e3be1bb69caa49 Mon Sep 17 00:00:00 2001 From: Falk David Date: Thu, 19 Sep 2024 14:14:46 +0200 Subject: [PATCH] GPv3: Rename property name of noise modifier The `factor` property that controls the noise on the positions was named `Offset Factor` in RNA but this name is overriden in the modifier to `Position`. When this property is e.g. keyed the RNA UI name is used which can be very confusing. This renames the RNA UI name to "Position Factor" to avoid this confusion. --- source/blender/makesrna/intern/rna_modifier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_modifier.cc b/source/blender/makesrna/intern/rna_modifier.cc index bb6c071bf5e..a7af1a197db 100644 --- a/source/blender/makesrna/intern/rna_modifier.cc +++ b/source/blender/makesrna/intern/rna_modifier.cc @@ -9356,7 +9356,7 @@ static void rna_def_modifier_grease_pencil_noise(BlenderRNA *brna) RNA_def_property_float_sdna(prop, nullptr, "factor"); RNA_def_property_range(prop, 0.0, FLT_MAX); RNA_def_property_ui_range(prop, 0.0, 1.0, 0.1, 2); - RNA_def_property_ui_text(prop, "Offset Factor", "Amount of noise to apply"); + RNA_def_property_ui_text(prop, "Position Factor", "Amount of noise to apply"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); prop = RNA_def_property(srna, "factor_strength", PROP_FLOAT, PROP_FACTOR);