Grease Pencil: Fix typo in labels and comments.

Hardeness -> Hardness

Only changed the labels/tooltips, will leave the internal change to @antoniov.
This commit is contained in:
Pablo Vazquez 2020-04-01 03:52:58 +02:00
parent 6a1f0c1eaa
commit b7868c0b89
4 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ static void deformStroke(GpencilModifierData *md,
return;
}
/* Hardeness (at stroke level). */
/* Hardness (at stroke level). */
if (mmd->modify_color == GP_MODIFY_COLOR_HARDENESS) {
gps->hardeness *= mmd->hardeness;
CLAMP(gps->hardeness, 0.0f, 1.0f);

View File

@ -1346,7 +1346,7 @@ static void rna_def_gpencil_options(BlenderRNA *brna)
RNA_def_property_range(prop, 0.001f, 1.0f);
RNA_def_property_float_default(prop, 1.0f);
RNA_def_property_ui_text(
prop, "Hardeness", "Amount of gradient for Dot and Box strokes (set to 1 for full solid)");
prop, "Hardness", "Gradient from the center of Dot and Box strokes (set to 1 for a solid stroke)");
RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0);
/* gradient shape ratio */

View File

@ -1203,7 +1203,7 @@ static void rna_def_gpencil_stroke(BlenderRNA *brna)
RNA_def_property_float_sdna(prop, NULL, "hardeness");
RNA_def_property_range(prop, 0.001f, 1.0f);
RNA_def_property_float_default(prop, 1.0f);
RNA_def_property_ui_text(prop, "Hardeness", "Amount of gradient along section of stroke");
RNA_def_property_ui_text(prop, "Hardness", "Amount of gradient along section of stroke");
RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0);
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");

View File

@ -144,7 +144,7 @@ static const EnumPropertyItem modifier_modify_opacity_items[] = {
{GP_MODIFY_COLOR_BOTH, "BOTH", 0, "Stroke and Fill", "Modify fill and stroke colors"},
{GP_MODIFY_COLOR_STROKE, "STROKE", 0, "Stroke", "Modify stroke color only"},
{GP_MODIFY_COLOR_FILL, "FILL", 0, "Fill", "Modify fill color only"},
{GP_MODIFY_COLOR_HARDENESS, "HARDENESS", 0, "Hardeness", "Modify stroke hardeness"},
{GP_MODIFY_COLOR_HARDENESS, "HARDENESS", 0, "Hardness", "Modify stroke hardness"},
{0, NULL, 0, NULL, NULL},
};
@ -1365,7 +1365,7 @@ static void rna_def_modifier_gpencilopacity(BlenderRNA *brna)
RNA_def_property_range(prop, 0.0, FLT_MAX);
RNA_def_property_ui_range(prop, 0.0, FLT_MAX, 0.1, 2);
RNA_def_property_float_default(prop, 1.0f);
RNA_def_property_ui_text(prop, "Hardeness", "Factor of stroke hardeness");
RNA_def_property_ui_text(prop, "Hardness", "Factor of stroke hardness");
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE);