From 8ccdea19341851e1eb4bf80458bce7fb517043c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 24 Apr 2025 02:43:52 +0000 Subject: [PATCH] Cleanup: typos & references to variable names from recent refactor --- scripts/modules/_bpy_internal/extensions/stale_file_manager.py | 2 +- scripts/startup/bl_operators/wm.py | 3 ++- source/blender/bmesh/intern/bmesh_core.cc | 2 +- source/blender/editors/object/object_edit.cc | 2 +- source/blender/geometry/intern/mesh_boolean.cc | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/modules/_bpy_internal/extensions/stale_file_manager.py b/scripts/modules/_bpy_internal/extensions/stale_file_manager.py index 2345707438c..80ae4ae3f4d 100644 --- a/scripts/modules/_bpy_internal/extensions/stale_file_manager.py +++ b/scripts/modules/_bpy_internal/extensions/stale_file_manager.py @@ -151,7 +151,7 @@ class StaleFiles: # Ensure the `base_directory` & `path_abs` they are not the same. # One could be forgiven for thinking they must never be the same since `path` - # is known not be be an empty string, one would be mistaken! + # is known not be an empty string, one would be mistaken! # WIN32 which considers `C:\path\` the same as `C:\path\. ` to be the same. # Therefor, literal lines containing any combination of trailing full-stop # or space characters would be considered files that cannot be removed. diff --git a/scripts/startup/bl_operators/wm.py b/scripts/startup/bl_operators/wm.py index af6b08aa5ab..ae59b7aecd2 100644 --- a/scripts/startup/bl_operators/wm.py +++ b/scripts/startup/bl_operators/wm.py @@ -3540,7 +3540,8 @@ class WM_MT_region_toggle_pie(Menu): for region in context.area.regions: region_type = region.type - # If the attribute doesn't exist, the RNA definition is outdated and needs to be see: #134339 and it fix. + # If the attribute doesn't exist, the RNA definition is outdated. + # See: #134339 and its fix for reference. attr = cls._region_info.get(region_type, None) if attr is None: continue diff --git a/source/blender/bmesh/intern/bmesh_core.cc b/source/blender/bmesh/intern/bmesh_core.cc index 9027f6c7e98..3dd3d894078 100644 --- a/source/blender/bmesh/intern/bmesh_core.cc +++ b/source/blender/bmesh/intern/bmesh_core.cc @@ -1361,7 +1361,7 @@ BMFace *BM_faces_join(BMesh *bm, BMFace **faces, int totface, const bool do_del, } else { /* Otherwise, delete only the faces that were merged - * (do not leave the mesh with both both the old and new faces). */ + * (do not leave the mesh with both the old and new faces). */ for (i = 0; i < totface; i++) { BM_face_kill(bm, faces[i]); } diff --git a/source/blender/editors/object/object_edit.cc b/source/blender/editors/object/object_edit.cc index f4443c40a2c..d116bd9852b 100644 --- a/source/blender/editors/object/object_edit.cc +++ b/source/blender/editors/object/object_edit.cc @@ -133,7 +133,7 @@ static bool object_mode_set_ok_or_report(ReportList *reports) * is quite obscure. See: #137380. */ if (G.moving & (G_TRANSFORM_OBJ | G_TRANSFORM_EDIT)) { - BKE_reportf(reports, RPT_ERROR, "Unable to change object modes while transforming"); + BKE_reportf(reports, RPT_ERROR, "Unable to change object mode while transforming"); return false; } diff --git a/source/blender/geometry/intern/mesh_boolean.cc b/source/blender/geometry/intern/mesh_boolean.cc index ceec606cef6..201086148f6 100644 --- a/source/blender/geometry/intern/mesh_boolean.cc +++ b/source/blender/geometry/intern/mesh_boolean.cc @@ -238,7 +238,7 @@ void MeshesToIMeshInfo::input_medge_for_orig_index(int orig_index, * Convert all of the meshes in `meshes` to an `IMesh` and return that. * All of the coordinates are transformed into the local space of the * first Mesh. To do this transformation, we also need the transformation - * obmats corresponding to the Meshes, so they are in the `obmats` argument. + * object matrices corresponding to the Meshes, so they are in the `transforms` argument. * The 'original' indexes in the IMesh are the indexes you get by * a scheme that offsets each vertex, edge, and face index by the sum of the * vertices, edges, and polys in the preceding Meshes in the mesh span.