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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user