Fix/Cleanup UI messages.
This commit is contained in:
parent
1c4c904786
commit
275419f6fd
|
@ -297,6 +297,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
|
|||
"ascii",
|
||||
"author", # Addons' field. :/
|
||||
"bItasc",
|
||||
"blender.org",
|
||||
"color_index is invalid",
|
||||
"cos(A)",
|
||||
"cosh(A)",
|
||||
|
@ -312,6 +313,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
|
|||
"glTF 2.0 (.glb/.gltf)",
|
||||
"glTF Binary (.glb)",
|
||||
"glTF Embedded (.gltf)",
|
||||
"glTF Original PBR data",
|
||||
"glTF Separate (.gltf + .bin + textures)",
|
||||
"invoke() needs to be called before execute()",
|
||||
"iScale",
|
||||
|
@ -330,6 +332,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
|
|||
"mp3",
|
||||
"normal",
|
||||
"ogg",
|
||||
"oneAPI",
|
||||
"p0",
|
||||
"px",
|
||||
"re",
|
||||
|
@ -340,6 +343,8 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
|
|||
"sinh(A)",
|
||||
"sqrt(x*x+y*y+z*z)",
|
||||
"sRGB",
|
||||
"sRGB display space",
|
||||
"sRGB display space with Filmic view transform",
|
||||
"tan(A)",
|
||||
"tanh(A)",
|
||||
"utf-8",
|
||||
|
@ -356,7 +361,9 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
|
|||
"all and invert unselected",
|
||||
"and AMD driver version 22.10 or newer",
|
||||
"and AMD Radeon Pro 21.Q4 driver or newer",
|
||||
"and Linux driver version xx.xx.28000 or newer",
|
||||
"and NVIDIA driver version 470 or newer",
|
||||
"and Windows driver version 101.1660 or newer",
|
||||
"available with",
|
||||
"brown fox",
|
||||
"can't save image while rendering",
|
||||
|
@ -431,6 +438,7 @@ WARN_MSGID_END_POINT_ALLOWED = {
|
|||
"The program will now close.",
|
||||
"Your graphics card or driver has limited support. It may work, but with issues.",
|
||||
"Your graphics card or driver is not supported.",
|
||||
"Invalid surface UVs on %d curves.",
|
||||
}
|
||||
|
||||
PARSER_CACHE_HASH = 'sha1'
|
||||
|
|
|
@ -433,6 +433,7 @@ class SpellChecker:
|
|||
"polyline", "polylines",
|
||||
"probabilistically",
|
||||
"pulldown", "pulldowns",
|
||||
"quadratically",
|
||||
"quantized",
|
||||
"quartic",
|
||||
"quaternion", "quaternions",
|
||||
|
@ -501,6 +502,7 @@ class SpellChecker:
|
|||
"luminance",
|
||||
"mantaflow",
|
||||
"matcap",
|
||||
"microfacet",
|
||||
"midtones",
|
||||
"mipmap", "mipmaps", "mip",
|
||||
"ngon", "ngons",
|
||||
|
@ -508,6 +510,7 @@ class SpellChecker:
|
|||
"nurb", "nurbs",
|
||||
"perlin",
|
||||
"phong",
|
||||
"photorealistic",
|
||||
"pinlight",
|
||||
"posterize",
|
||||
"qi",
|
||||
|
@ -675,7 +678,7 @@ class SpellChecker:
|
|||
"ascii",
|
||||
"atrac",
|
||||
"avx",
|
||||
"bsdf",
|
||||
"bsdf", "bsdfs",
|
||||
"bssrdf",
|
||||
"bw",
|
||||
"ccd",
|
||||
|
@ -708,14 +711,17 @@ class SpellChecker:
|
|||
"hdc",
|
||||
"hdr", "hdri", "hdris",
|
||||
"hh", "mm", "ss", "ff", # hh:mm:ss:ff timecode
|
||||
"hpg", # Intel Xe-HPG architecture
|
||||
"hsv", "hsva", "hsl",
|
||||
"id",
|
||||
"ies",
|
||||
"ior",
|
||||
"itu",
|
||||
"jonswap",
|
||||
"lfe",
|
||||
"lhs",
|
||||
"lmb", "mmb", "rmb",
|
||||
"lscm",
|
||||
"kb",
|
||||
"mocap",
|
||||
"msgid", "msgids",
|
||||
|
|
|
@ -1650,7 +1650,7 @@ class SEQUENCER_PT_source(SequencerButtonsPanel, Panel):
|
|||
if sound.samplerate <= 0:
|
||||
split.label(text="Unknown")
|
||||
else:
|
||||
split.label(text="%d Hz." % sound.samplerate, translate=False)
|
||||
split.label(text="%d Hz" % sound.samplerate, translate=False)
|
||||
|
||||
split = col.split(factor=0.5, align=False)
|
||||
split.alignment = 'RIGHT'
|
||||
|
|
|
@ -382,7 +382,7 @@ static bool node_add_group_poll(bContext *C)
|
|||
if (snode->edittree->type == NTREE_CUSTOM) {
|
||||
CTX_wm_operator_poll_msg_set(C,
|
||||
"This node editor displays a custom (Python defined) node tree. "
|
||||
"Dropping node groups isn't supported for this.");
|
||||
"Dropping node groups isn't supported for this");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -448,7 +448,7 @@ static void options_light_reference_draw(const bContext *UNUSED(C), Panel *panel
|
|||
uiItemR(col, ptr, "shadow_camera_near", 0, "Near", ICON_NONE);
|
||||
uiItemR(col, ptr, "shadow_camera_far", 0, "Far", ICON_NONE);
|
||||
|
||||
uiItemR(layout, ptr, "use_shadow_enclosed_shapes", 0, IFACE_("Eclosed Shapes"), ICON_NONE);
|
||||
uiItemR(layout, ptr, "use_shadow_enclosed_shapes", 0, IFACE_("Enclosed Shapes"), ICON_NONE);
|
||||
}
|
||||
|
||||
static void options_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
||||
|
|
|
@ -3452,7 +3452,7 @@ static void rna_def_modifier_gpencillineart(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "use_shadow", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "edge_types", LRT_EDGE_FLAG_PROJECTED_SHADOW);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Use Shadow", "Project contour lines using a light shource object");
|
||||
prop, "Use Shadow", "Project contour lines using a light source object");
|
||||
RNA_def_property_update(prop, 0, "rna_GpencilModifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "shadow_region_filtering", PROP_ENUM, PROP_NONE);
|
||||
|
|
|
@ -64,7 +64,7 @@ DefNode(ShaderNode, SH_NODE_BSDF_DIFFUSE, 0, "BSD
|
|||
DefNode(ShaderNode, SH_NODE_BSDF_PRINCIPLED, def_principled, "BSDF_PRINCIPLED", BsdfPrincipled, "Principled BSDF", "Physically-based, easy-to-use shader for rendering surface materials, based on the Disney principled model also known as the \"PBR\" shader")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_GLOSSY, def_glossy, "BSDF_GLOSSY", BsdfGlossy, "Glossy BSDF", "Reflection with microfacet distribution, used for materials such as metal or mirrors")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_GLASS, def_glass, "BSDF_GLASS", BsdfGlass, "Glass BSDF", "Glass-like shader mixing refraction and reflection at grazing angles")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_REFRACTION, def_refraction, "BSDF_REFRACTION", BsdfRefraction, "Refraction BSDF", "Glossy refraction with sharp or microfacet distribution,. Typically used for materials that transmit light")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_REFRACTION, def_refraction, "BSDF_REFRACTION", BsdfRefraction, "Refraction BSDF", "Glossy refraction with sharp or microfacet distribution, typically used for materials that transmit light")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_TRANSLUCENT, 0, "BSDF_TRANSLUCENT", BsdfTranslucent, "Translucent BSDF", "Lambertian diffuse transmission")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_TRANSPARENT, 0, "BSDF_TRANSPARENT", BsdfTransparent, "Transparent BSDF", "Transparency without refraction, passing straight through the surface as if there were no geometry")
|
||||
DefNode(ShaderNode, SH_NODE_BSDF_VELVET, 0, "BSDF_VELVET", BsdfVelvet, "Velvet BSDF", "Reflection for materials such as cloth.\nTypically mixed with other shaders (such as a Diffuse Shader) and is not particularly useful on its own")
|
||||
|
|
|
@ -229,7 +229,7 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
}
|
||||
if (surface_ob_eval == nullptr || surface_ob_eval->type != OB_MESH) {
|
||||
pass_through_input();
|
||||
params.error_message_add(NodeWarningType::Error, "Curves not attached to a surface.");
|
||||
params.error_message_add(NodeWarningType::Error, "Curves not attached to a surface");
|
||||
return;
|
||||
}
|
||||
Object *surface_ob_orig = DEG_get_original_object(surface_ob_eval);
|
||||
|
@ -246,7 +246,7 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
false);
|
||||
if (surface_mesh_eval == nullptr) {
|
||||
pass_through_input();
|
||||
params.error_message_add(NodeWarningType::Error, "Surface has no mesh.");
|
||||
params.error_message_add(NodeWarningType::Error, "Surface has no mesh");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -260,13 +260,13 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
|
||||
if (uv_map_name.is_empty()) {
|
||||
pass_through_input();
|
||||
const char *message = TIP_("Surface UV map not defined.");
|
||||
const char *message = TIP_("Surface UV map not defined");
|
||||
params.error_message_add(NodeWarningType::Error, message);
|
||||
return;
|
||||
}
|
||||
if (!mesh_attributes_eval.contains(uv_map_name)) {
|
||||
pass_through_input();
|
||||
char *message = BLI_sprintfN(TIP_("Evaluated surface missing UV map: %s."),
|
||||
char *message = BLI_sprintfN(TIP_("Evaluated surface missing UV map: %s"),
|
||||
uv_map_name.c_str());
|
||||
params.error_message_add(NodeWarningType::Error, message);
|
||||
MEM_freeN(message);
|
||||
|
@ -274,8 +274,7 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
}
|
||||
if (!mesh_attributes_orig.contains(uv_map_name)) {
|
||||
pass_through_input();
|
||||
char *message = BLI_sprintfN(TIP_("Original surface missing UV map: %s."),
|
||||
uv_map_name.c_str());
|
||||
char *message = BLI_sprintfN(TIP_("Original surface missing UV map: %s"), uv_map_name.c_str());
|
||||
params.error_message_add(NodeWarningType::Error, message);
|
||||
MEM_freeN(message);
|
||||
return;
|
||||
|
@ -283,13 +282,13 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
if (!mesh_attributes_eval.contains(rest_position_name)) {
|
||||
pass_through_input();
|
||||
params.error_message_add(NodeWarningType::Error,
|
||||
TIP_("Evaluated surface missing attribute: rest_position."));
|
||||
TIP_("Evaluated surface missing attribute: rest_position"));
|
||||
return;
|
||||
}
|
||||
if (curves.surface_uv_coords().is_empty()) {
|
||||
pass_through_input();
|
||||
params.error_message_add(NodeWarningType::Error,
|
||||
TIP_("Curves are not attached to any UV map."));
|
||||
TIP_("Curves are not attached to any UV map"));
|
||||
return;
|
||||
}
|
||||
const VArraySpan<float2> uv_map_orig = mesh_attributes_orig.lookup<float2>(uv_map_name,
|
||||
|
@ -337,7 +336,7 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
curves.tag_positions_changed();
|
||||
|
||||
if (invalid_uv_count) {
|
||||
char *message = BLI_sprintfN(TIP_("Invalid surface UVs on %d curves."),
|
||||
char *message = BLI_sprintfN(TIP_("Invalid surface UVs on %d curves"),
|
||||
invalid_uv_count.load());
|
||||
params.error_message_add(NodeWarningType::Warning, message);
|
||||
MEM_freeN(message);
|
||||
|
|
Loading…
Reference in New Issue