Various fixes in UI messages.

Along some other typos in comments or variable names.
This commit is contained in:
Bastien Montagne 2020-09-21 15:17:41 +02:00
parent a34e7c3e5d
commit 9d3550d781
13 changed files with 25 additions and 20 deletions

@ -376,6 +376,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
"multi-res modifier", "multi-res modifier",
"non-triangle face", "non-triangle face",
"normal", "normal",
"performance impact!",
"right", "right",
"the lazy dog", "the lazy dog",
"unable to load movie clip", "unable to load movie clip",

@ -124,13 +124,14 @@ class SpellChecker:
"forcefield", "forcefields", "forcefield", "forcefields",
"fulldome", "fulldomes", "fulldome", "fulldomes",
"fullscreen", "fullscreen",
"gridline", "gridline", "gridlines",
"hardlight", "hardlight",
"hemi", "hemi",
"hostname", "hostname",
"inbetween", "inbetween",
"inscatter", "inscattering", "inscatter", "inscattering",
"libdata", "libdata",
"lightcache",
"lightprobe", "lightprobes", "lightprobe", "lightprobes",
"lightless", "lightless",
"lineset", "lineset",
@ -161,6 +162,7 @@ class SpellChecker:
"online", "online",
"playhead", "playhead",
"popup", "popups", "popup", "popups",
"pointcloud",
"pre", "pre",
"precache", "precaching", "precache", "precaching",
"precalculate", "precalculate",
@ -182,6 +184,7 @@ class SpellChecker:
"reprojection", "reproject", "reprojecting", "reprojection", "reproject", "reprojecting",
"resize", "resize",
"restpose", "restpose",
"resync",
"retarget", "retargets", "retargeting", "retargeted", "retarget", "retargets", "retargeting", "retargeted",
"retiming", "retiming",
"rigidbody", "rigidbody",
@ -608,6 +611,7 @@ class SpellChecker:
"courant", "courant",
"cryptomatte", "crypto", "cryptomatte", "crypto",
"embree", "embree",
"gmp",
"hosek", "hosek",
"kutta", "kutta",
"lennard", "lennard",

@ -1384,7 +1384,7 @@ class PHYSICS_PT_viewport_display_debug(PhysicButtonsPanel, Panel):
if not domain.use_guide and domain.vector_field == 'GUIDE_VELOCITY': if not domain.use_guide and domain.vector_field == 'GUIDE_VELOCITY':
note = layout.split() note = layout.split()
note.label(icon='INFO', text="Enable Guides first! Defaulting to Fluid Velocity.") note.label(icon='INFO', text="Enable Guides first! Defaulting to Fluid Velocity")
if domain.vector_display_type == 'MAC': if domain.vector_display_type == 'MAC':
sub = col.column(heading="MAC Grid") sub = col.column(heading="MAC Grid")

@ -250,7 +250,7 @@ static void brush_blend_read_data(BlendDataReader *reader, ID *id)
{ {
Brush *brush = (Brush *)id; Brush *brush = (Brush *)id;
/* fallof curve */ /* Falloff curve. */
BLO_read_data_address(reader, &brush->curve); BLO_read_data_address(reader, &brush->curve);
BLO_read_data_address(reader, &brush->gradient); BLO_read_data_address(reader, &brush->gradient);

@ -724,7 +724,7 @@ ToolSettings *BKE_toolsettings_copy(ToolSettings *toolsettings, const int flag)
/* duplicate Grease Pencil interpolation curve */ /* duplicate Grease Pencil interpolation curve */
ts->gp_interpolate.custom_ipo = BKE_curvemapping_copy(ts->gp_interpolate.custom_ipo); ts->gp_interpolate.custom_ipo = BKE_curvemapping_copy(ts->gp_interpolate.custom_ipo);
/* duplicate Grease Pencil multiframe fallof */ /* Duplicate Grease Pencil multiframe falloff. */
ts->gp_sculpt.cur_falloff = BKE_curvemapping_copy(ts->gp_sculpt.cur_falloff); ts->gp_sculpt.cur_falloff = BKE_curvemapping_copy(ts->gp_sculpt.cur_falloff);
ts->gp_sculpt.cur_primitive = BKE_curvemapping_copy(ts->gp_sculpt.cur_primitive); ts->gp_sculpt.cur_primitive = BKE_curvemapping_copy(ts->gp_sculpt.cur_primitive);

@ -271,8 +271,8 @@ static float gpencil_brush_influence_calc(tGP_BrushEditData *gso,
float distance = (float)len_v2v2_int(mval_i, co); float distance = (float)len_v2v2_int(mval_i, co);
/* Apply Brush curve. */ /* Apply Brush curve. */
float brush_fallof = BKE_brush_curve_strength(brush, distance, (float)radius); float brush_falloff = BKE_brush_curve_strength(brush, distance, (float)radius);
influence *= brush_fallof; influence *= brush_falloff;
/* apply multiframe falloff */ /* apply multiframe falloff */
influence *= gso->mf_falloff; influence *= gso->mf_falloff;

@ -231,8 +231,8 @@ static float brush_influence_calc(tGP_BrushVertexpaintData *gso, const int radiu
float distance = (float)len_v2v2_int(mval_i, co); float distance = (float)len_v2v2_int(mval_i, co);
/* Apply Brush curve. */ /* Apply Brush curve. */
float brush_fallof = BKE_brush_curve_strength(brush, distance, (float)radius); float brush_falloff = BKE_brush_curve_strength(brush, distance, (float)radius);
influence *= brush_fallof; influence *= brush_falloff;
/* apply multiframe falloff */ /* apply multiframe falloff */
influence *= gso->mf_falloff; influence *= gso->mf_falloff;
@ -646,7 +646,7 @@ static bool brush_smear_apply(tGP_BrushVertexpaintData *gso,
inf *= gso->pressure; inf *= gso->pressure;
} }
/* Calc distance from initial sample location and add a fallof effect. */ /* Calc distance from initial sample location and add a falloff effect. */
int mval_i[2]; int mval_i[2];
round_v2i_v2fl(mval_i, gso->mval); round_v2i_v2fl(mval_i, gso->mval);
float distance = (float)len_v2v2_int(mval_i, gso->grid_sample); float distance = (float)len_v2v2_int(mval_i, gso->grid_sample);

@ -203,8 +203,8 @@ static float brush_influence_calc(tGP_BrushWeightpaintData *gso, const int radiu
influence *= 1.0f - (distance / max_ff(radius, 1e-8)); influence *= 1.0f - (distance / max_ff(radius, 1e-8));
/* Apply Brush curve. */ /* Apply Brush curve. */
float brush_fallof = BKE_brush_curve_strength(brush, distance, (float)radius); float brush_falloff = BKE_brush_curve_strength(brush, distance, (float)radius);
influence *= brush_fallof; influence *= brush_falloff;
/* apply multi-frame falloff */ /* apply multi-frame falloff */
influence *= gso->mf_falloff; influence *= gso->mf_falloff;

@ -1744,7 +1744,7 @@ static void paint_cursor_cursor_draw_3d_view_brush_cursor_active(PaintCursorCont
else if (brush->cloth_force_falloff_type == BRUSH_CLOTH_FORCE_FALLOFF_RADIAL && else if (brush->cloth_force_falloff_type == BRUSH_CLOTH_FORCE_FALLOFF_RADIAL &&
brush->cloth_simulation_area_type == BRUSH_CLOTH_SIMULATION_AREA_LOCAL) { brush->cloth_simulation_area_type == BRUSH_CLOTH_SIMULATION_AREA_LOCAL) {
/* Display the simulation limits if sculpting outside them. */ /* Display the simulation limits if sculpting outside them. */
/* This does not makes much sense of plane fallof as the fallof is infinte or global. */ /* This does not makes much sense of plane falloff as the falloff is infinte or global. */
if (len_v3v3(ss->cache->true_location, ss->cache->true_initial_location) > if (len_v3v3(ss->cache->true_location, ss->cache->true_initial_location) >
ss->cache->radius * (1.0f + brush->cloth_sim_limit)) { ss->cache->radius * (1.0f + brush->cloth_sim_limit)) {

@ -113,7 +113,7 @@ static void copyData(const GpencilModifierData *md, GpencilModifierData *target)
tgmd->curfalloff = BKE_curvemapping_copy(gmd->curfalloff); tgmd->curfalloff = BKE_curvemapping_copy(gmd->curfalloff);
} }
/* calculate factor of fallof */ /* Calculate the factor of falloff. */
static float gpencil_hook_falloff(const struct GPHookData_cb *tData, const float len_sq) static float gpencil_hook_falloff(const struct GPHookData_cb *tData, const float len_sq)
{ {
BLI_assert(tData->falloff_sq); BLI_assert(tData->falloff_sq);

@ -2036,7 +2036,7 @@ static void rna_def_brush(BlenderRNA *brna)
"RADIUS", "RADIUS",
0, 0,
"Brush Radius", "Brush Radius",
"Applies the deformation in a localiced area limited by the brush radius"}, "Applies the deformation in a localized area limited by the brush radius"},
{BRUSH_BOUNDARY_FALLOFF_LOOP, {BRUSH_BOUNDARY_FALLOFF_LOOP,
"LOOP", "LOOP",
0, 0,
@ -2046,8 +2046,8 @@ static void rna_def_brush(BlenderRNA *brna)
"LOOP_INVERT", "LOOP_INVERT",
0, 0,
"Loop and Invert", "Loop and Invert",
"Applies the fallof radius in a loop pattern, inverting the displacement direction in each " "Applies the falloff radius in a loop pattern, inverting the displacement direction in "
"pattern repetition"}, "each pattern repetition"},
{0, NULL, 0, NULL, NULL}, {0, NULL, 0, NULL, NULL},
}; };
@ -2056,7 +2056,7 @@ static void rna_def_brush(BlenderRNA *brna)
"LOCAL", "LOCAL",
0, 0,
"Local", "Local",
"Simulates only a specific area arround the brush limited by a fixed radius"}, "Simulates only a specific area around the brush limited by a fixed radius"},
{BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, "GLOBAL", 0, "Global", "Simulates the entire mesh"}, {BRUSH_CLOTH_SIMULATION_AREA_GLOBAL, "GLOBAL", 0, "Global", "Simulates the entire mesh"},
{0, NULL, 0, NULL, NULL}, {0, NULL, 0, NULL, NULL},
}; };
@ -2941,7 +2941,7 @@ static void rna_def_brush(BlenderRNA *brna)
prop, prop,
"Pin Simulation Boundary", "Pin Simulation Boundary",
"Lock the position of the vertices in the simulation falloff area to avoid artifacts and " "Lock the position of the vertices in the simulation falloff area to avoid artifacts and "
"create a softer transitionwith with unnafected areas"); "create a softer transition with unaffected areas");
RNA_def_property_update(prop, 0, "rna_Brush_update"); RNA_def_property_update(prop, 0, "rna_Brush_update");
prop = RNA_def_property(srna, "use_cloth_collision", PROP_BOOLEAN, PROP_NONE); prop = RNA_def_property(srna, "use_cloth_collision", PROP_BOOLEAN, PROP_NONE);

@ -1567,7 +1567,7 @@ static void rna_def_curve(BlenderRNA *brna)
"OBJECT", "OBJECT",
0, 0,
"Object", "Object",
"Use an object for the section of the curve's bevel goemetry segment"}, "Use an object for the section of the curve's bevel geometry segment"},
{CU_BEV_MODE_CURVE_PROFILE, {CU_BEV_MODE_CURVE_PROFILE,
"PROFILE", "PROFILE",
0, 0,

@ -81,7 +81,7 @@ const EnumPropertyItem rna_enum_rigidbody_object_shape_items[] = {
"COMPOUND", "COMPOUND",
ICON_MESH_DATA, ICON_MESH_DATA,
"Compound Parent", "Compound Parent",
"Combines all of its direct rigid body children into one rigid object."}, "Combines all of its direct rigid body children into one rigid object"},
{0, NULL, 0, NULL, NULL}, {0, NULL, 0, NULL, NULL},
}; };