Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-06 12:08:10 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:31:58 +0300
commit451a49c3727fd3a199f6019db8cb574f433e3e0a (patch)
tree0450ad24bf1c8f5e1058e5042d957e3eddb5c822
parent006bc7104325b4323d61389a8ac9037e5401ae2e (diff)
Cleanup: spelling & poor wording in code & comments
-rw-r--r--release/scripts/modules/bpy_types.py6
-rw-r--r--source/blender/blenkernel/intern/bvhutils.cc2
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c2
-rw-r--r--source/blender/io/wavefront_obj/importer/obj_import_mesh.hh2
-rw-r--r--source/blender/python/intern/bpy_capi_utils.c3
5 files changed, 7 insertions, 8 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index 45fd6d29dfa..be60a1711aa 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -9,7 +9,7 @@ StructMetaPropGroup = bpy_types.bpy_struct_meta_idprop
# StructRNA = bpy_types.Struct
# Private dummy object use for comparison only.
-_sentinal = object()
+_sentinel = object()
# Note that methods extended in C are defined in: 'bpy_rna_types_capi.c'
@@ -51,8 +51,8 @@ class Context(StructRNA):
# Retrieve the value for `attr`.
# Match the value error exception with that of "path_resolve"
# to simplify exception handling for the caller.
- value = getattr(self, attr, _sentinal)
- if value is _sentinal:
+ value = getattr(self, attr, _sentinel)
+ if value is _sentinel:
raise ValueError("Path could not be resolved: %r" % attr)
if value is None:
diff --git a/source/blender/blenkernel/intern/bvhutils.cc b/source/blender/blenkernel/intern/bvhutils.cc
index d2e1c04a923..df266029506 100644
--- a/source/blender/blenkernel/intern/bvhutils.cc
+++ b/source/blender/blenkernel/intern/bvhutils.cc
@@ -562,7 +562,7 @@ static void mesh_edges_spherecast(void *userdata,
*/
/* -------------------------------------------------------------------- */
-/** \name Commom Utils
+/** \name Common Utils
* \{ */
static void bvhtree_from_mesh_setup_data(BVHTree *tree,
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 73716f6edba..ee40431c101 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -4399,7 +4399,7 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
knifetool_exit(op);
ED_workspace_status_text(C, NULL);
- /* Exit early to prevent undo push for empty cuts. */
+ /* Cancel to prevent undo push for empty cuts. */
if (kcd->totkvert == 0) {
return OPERATOR_CANCELLED;
}
diff --git a/source/blender/io/wavefront_obj/importer/obj_import_mesh.hh b/source/blender/io/wavefront_obj/importer/obj_import_mesh.hh
index e2cdb4c0721..2a838215421 100644
--- a/source/blender/io/wavefront_obj/importer/obj_import_mesh.hh
+++ b/source/blender/io/wavefront_obj/importer/obj_import_mesh.hh
@@ -61,7 +61,7 @@ class MeshFromGeometry : NonMovable, NonCopyable {
*/
void create_uv_verts(Mesh *mesh);
/**
- * Add materials and the nodetree to the Mesh Object.
+ * Add materials and the node-tree to the Mesh Object.
*/
void create_materials(Main *bmain,
const Map<std::string, std::unique_ptr<MTLMaterial>> &materials,
diff --git a/source/blender/python/intern/bpy_capi_utils.c b/source/blender/python/intern/bpy_capi_utils.c
index f7f8253edac..59b0fded445 100644
--- a/source/blender/python/intern/bpy_capi_utils.c
+++ b/source/blender/python/intern/bpy_capi_utils.c
@@ -69,8 +69,7 @@ bool BPy_errors_to_report_ex(ReportList *reports,
return 0;
}
- /* Trim trailing newlines so the report doesn't contain a trailing new-line.
- * This would add a blank-line in the info space. */
+ /* Strip trailing newlines so the report doesn't show a blank-line in the info space. */
Py_ssize_t err_str_len;
const char *err_str = PyUnicode_AsUTF8AndSize(err_str_py, &err_str_len);
while (err_str_len > 0 && err_str[err_str_len - 1] == '\n') {