From 9dff3de6acb30193dafd292571858770ee385e51 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Oct 2021 08:57:15 +1100 Subject: Cleanup: clang-tidy, clang-format & spelling --- source/blender/draw/engines/eevee/eevee_lightprobes.c | 4 ++-- source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c | 2 +- source/blender/editors/include/ED_transform_snap_object_context.h | 4 ++-- source/blender/nodes/geometry/nodes/node_geo_edge_split.cc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender') diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c index 56227bc95ec..ab083253499 100644 --- a/source/blender/draw/engines/eevee/eevee_lightprobes.c +++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c @@ -1214,7 +1214,7 @@ void EEVEE_lightprobes_refresh_planar(EEVEE_ViewLayerData *sldata, EEVEE_Data *v common_data->ray_type = EEVEE_RAY_GLOSSY; common_data->ray_depth = 1.0f; - /* Planar reflections are rendered at the hiz resolution, so no need to scalling. */ + /* Planar reflections are rendered at the `hiz` resolution, so no need to scaling. */ copy_v2_fl(common_data->hiz_uv_scale, 1.0f); GPU_uniformbuf_update(sldata->common_ubo, &sldata->common_data); @@ -1240,7 +1240,7 @@ void EEVEE_lightprobes_refresh_planar(EEVEE_ViewLayerData *sldata, EEVEE_Data *v } if (DRW_state_is_image_render()) { - /* Sort transparents because planar reflections could have re-sorted them. */ + /* Sort the transparent passes because planar reflections could have re-sorted them. */ DRW_pass_sort_shgroup_z(vedata->psl->transparent_pass); } diff --git a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c index 0c1e6e91cef..322ae87befa 100644 --- a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c +++ b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c @@ -576,7 +576,7 @@ static void snap_gizmo_setup(wmGizmo *gz) SnapGizmo3D *snap_gizmo = (SnapGizmo3D *)gz; wmKeyConfig *keyconf = gz->parent_gzgroup->type->keyconf; if (!keyconf) { - /* It can happen when gizmogrouptype is not linked at startup. */ + /* It can happen when gizmo-group-type is not linked at startup. */ keyconf = ((wmWindowManager *)G.main->wm.first)->defaultconf; } snap_gizmo->keymap = WM_modalkeymap_find(keyconf, "Generic Gizmo Tweak Modal Map"); diff --git a/source/blender/editors/include/ED_transform_snap_object_context.h b/source/blender/editors/include/ED_transform_snap_object_context.h index c8e8513d104..7311303d7cd 100644 --- a/source/blender/editors/include/ED_transform_snap_object_context.h +++ b/source/blender/editors/include/ED_transform_snap_object_context.h @@ -128,8 +128,8 @@ bool ED_transform_snap_object_project_ray_all(SnapObjectContext *sctx, short ED_transform_snap_object_project_view3d_ex(struct SnapObjectContext *sctx, struct Depsgraph *depsgraph, - const ARegion *region, - const View3D *v3d, + const ARegion *region, + const View3D *v3d, const unsigned short snap_to, const struct SnapObjectParams *params, const float mval[2], diff --git a/source/blender/nodes/geometry/nodes/node_geo_edge_split.cc b/source/blender/nodes/geometry/nodes/node_geo_edge_split.cc index fcc95d6430c..efac0667ffa 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_edge_split.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_edge_split.cc @@ -48,7 +48,7 @@ static Mesh *mesh_edge_split(const Mesh &mesh, const IndexMask selection) BM_mesh_edgesplit(bm, false, true, false); - Mesh *result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL, &mesh); + Mesh *result = BKE_mesh_from_bmesh_for_eval_nomain(bm, nullptr, &mesh); BM_mesh_free(bm); BKE_mesh_normals_tag_dirty(result); -- cgit v1.2.3