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.
This commit is contained in:
Falk David
2024-09-19 14:14:46 +02:00
parent c92514f1e7
commit bdb4233279

View File

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