From 8fdb1902783af9a56c6ff5eb840a56e588bab257 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 14 Jul 2024 18:55:43 +1000 Subject: [PATCH] Cleanup: typos in comments (duplicate words) --- intern/cycles/kernel/geom/curve_intersect.h | 2 +- intern/cycles/kernel/osl/shaders/node_gabor_texture.osl | 2 +- intern/cycles/kernel/svm/gabor.h | 2 +- intern/cycles/scene/light_tree.cpp | 2 +- intern/ghost/intern/GHOST_SystemWayland.cc | 4 ++-- intern/ghost/intern/GHOST_WindowWayland.cc | 2 +- scripts/modules/bpy_types.py | 4 ++-- scripts/modules/keyingsets_utils.py | 2 +- scripts/presets/keyconfig/keymap_data/blender_default.py | 2 +- scripts/startup/bl_ui/space_toolsystem_toolbar.py | 2 +- scripts/templates_py/operator_modal_draw.py | 5 ++--- source/blender/animrig/ANIM_action.hh | 2 +- source/blender/blenkernel/BKE_editmesh_cache.hh | 2 +- source/blender/blenkernel/BKE_preferences.h | 3 +-- source/blender/blenkernel/intern/grease_pencil.cc | 2 +- source/blender/blenlib/BLI_task.hh | 2 +- source/blender/blenlib/intern/convexhull_2d.cc | 2 +- source/blender/blenlib/intern/math_interp.cc | 2 +- .../cached_resources/COM_van_vliet_gaussian_coefficients.hh | 6 +++--- .../intern/van_vliet_gaussian_coefficients.cc | 2 +- .../shaders/compositor_parallel_reduction.glsl | 6 +++--- source/blender/draw/engines/eevee_next/eevee_material.cc | 2 +- .../eevee_next/shaders/eevee_ray_trace_screen_lib.glsl | 2 +- source/blender/editors/interface/interface_intern.hh | 2 +- source/blender/editors/space_node/node_draw.cc | 2 +- .../gpu/shaders/material/gpu_shader_material_tex_gabor.glsl | 2 +- source/blender/io/usd/intern/usd_blend_shape_utils.cc | 3 +-- source/blender/io/usd/intern/usd_writer_material.cc | 2 +- .../nodes/composite/nodes/node_composite_cryptomatte.cc | 2 +- .../nodes/composite/nodes/node_composite_file_output.cc | 2 +- source/blender/nodes/geometry/nodes/node_geo_proximity.cc | 2 +- source/blender/python/intern/bpy_rna_context.cc | 2 +- 32 files changed, 39 insertions(+), 42 deletions(-) diff --git a/intern/cycles/kernel/geom/curve_intersect.h b/intern/cycles/kernel/geom/curve_intersect.h index 2ff9c879fe9..e18c8f09ce3 100644 --- a/intern/cycles/kernel/geom/curve_intersect.h +++ b/intern/cycles/kernel/geom/curve_intersect.h @@ -2,7 +2,7 @@ * * SPDX-License-Identifier: Apache-2.0 * - * Adapted from Embree with with modifications. */ + * Adapted from Embree with modifications. */ #pragma once diff --git a/intern/cycles/kernel/osl/shaders/node_gabor_texture.osl b/intern/cycles/kernel/osl/shaders/node_gabor_texture.osl index 3c40b55f835..efce0121bad 100644 --- a/intern/cycles/kernel/osl/shaders/node_gabor_texture.osl +++ b/intern/cycles/kernel/osl/shaders/node_gabor_texture.osl @@ -198,7 +198,7 @@ float compute_3d_gabor_standard_deviation(float frequency) return sqrt(IMPULSES_COUNT * second_moment * integral_of_gabor_squared); } -/* Computes the orientation of the Gabor kernel such that it is is constant for anisotropic +/* Computes the orientation of the Gabor kernel such that it is constant for anisotropic * noise while it is random for isotropic noise. We randomize in spherical coordinates for a * uniform distribution. */ vector3 compute_3d_orientation(vector3 orientation, float isotropy, vector4 seed) diff --git a/intern/cycles/kernel/svm/gabor.h b/intern/cycles/kernel/svm/gabor.h index a72800d82b7..7a96ee7c7e4 100644 --- a/intern/cycles/kernel/svm/gabor.h +++ b/intern/cycles/kernel/svm/gabor.h @@ -195,7 +195,7 @@ ccl_device float compute_3d_gabor_standard_deviation(float frequency) return sqrtf(IMPULSES_COUNT * second_moment * integral_of_gabor_squared); } -/* Computes the orientation of the Gabor kernel such that it is is constant for anisotropic +/* Computes the orientation of the Gabor kernel such that it is constant for anisotropic * noise while it is random for isotropic noise. We randomize in spherical coordinates for a * uniform distribution. */ ccl_device float3 compute_3d_orientation(float3 orientation, float isotropy, float4 seed) diff --git a/intern/cycles/scene/light_tree.cpp b/intern/cycles/scene/light_tree.cpp index 04e34fbda50..62fd7eef457 100644 --- a/intern/cycles/scene/light_tree.cpp +++ b/intern/cycles/scene/light_tree.cpp @@ -427,7 +427,7 @@ LightTreeNode *LightTree::build(Scene *scene, DeviceScene *dscene) root_->light_link = root_->get_inner().children[left]->light_link + root_->get_inner().children[right]->light_link; - /* Root nodes are never meant to be be shared, even if the local and distant lights are from the + /* Root nodes are never meant to be shared, even if the local and distant lights are from the * same light linking set. Attempting to sharing it will make it so the specialized tree will * try to use the same root as the default tree. */ root_->light_link.shareable = false; diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index 6f0c26474bf..710f5114aa5 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -3394,7 +3394,7 @@ static void data_device_handle_drop(void *data, wl_data_device * /*wl_data_devic std::lock_guard lock{seat->data_offer_dnd_mutex}; /* No need to check this for null (as other callbacks do). - * because the the data-offer has not been accepted (actions set... etc). */ + * because the data-offer has not been accepted (actions set... etc). */ GWL_DataOffer *data_offer = seat->data_offer_dnd; /* Use a blank string for `mime_receive` to prevent crashes, although could also be `nullptr`. @@ -4871,7 +4871,7 @@ static void keyboard_handle_keymap(void *data, CLOG_INFO(LOG, 2, "keymap"); - /* Reset in case there was a previous non-zero active layout for the the last key-map. + /* Reset in case there was a previous non-zero active layout for the last key-map. * Note that this is set later by `wl_keyboard_listener::modifiers`, it's possible that handling * the first modifier will run #xkb_state_update_mask again (if the active layout is non-zero) * however as this is only done when the layout changed, it's harmless. diff --git a/intern/ghost/intern/GHOST_WindowWayland.cc b/intern/ghost/intern/GHOST_WindowWayland.cc index 2df7b0a53db..26d41b65017 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cc +++ b/intern/ghost/intern/GHOST_WindowWayland.cc @@ -2605,7 +2605,7 @@ bool GHOST_WindowWayland::outputs_changed_update_scale() * each with different fractional scale, see: #109194. * * Note that the window will show larger, then resize to be smaller soon - * after opening. This would be nice to avoid but but would require DPI + * after opening. This would be nice to avoid but would require DPI * to be stored in the window (as noted above). */ int size_next[2] = {0, 0}; int size_orig[2] = {0, 0}; diff --git a/scripts/modules/bpy_types.py b/scripts/modules/bpy_types.py index c38000220cd..0a98ee23896 100644 --- a/scripts/modules/bpy_types.py +++ b/scripts/modules/bpy_types.py @@ -510,7 +510,7 @@ class EditBone(StructRNA, _GenericBone, metaclass=StructMetaPropGroup): def transform(self, matrix, *, scale=True, roll=True): """ - Transform the the bones head, tail, roll and envelope + Transform the bones head, tail, roll and envelope (when the matrix has a scale component). :arg matrix: 3x3 or 4x4 transformation matrix. @@ -895,7 +895,7 @@ class Gizmo(StructRNA): :arg type: The type of shape to create in (POINTS, LINES, TRIS, LINE_STRIP). :type type: string :arg verts: Coordinates. - :type verts: sequence of of 2D or 3D coordinates. + :type verts: sequence of 2D or 3D coordinates. :arg display_name: Optional callback that takes the full path, returns the name to display. :type display_name: Callable that takes a string and returns a string. :return: The newly created shape. diff --git a/scripts/modules/keyingsets_utils.py b/scripts/modules/keyingsets_utils.py index 30961141812..5ff11da02bf 100644 --- a/scripts/modules/keyingsets_utils.py +++ b/scripts/modules/keyingsets_utils.py @@ -28,7 +28,7 @@ import bpy # General Utilities -# Append the specified property name on the the existing path +# Append the specified property name on the existing path. def path_add_property(path, prop): if path: return path + "." + prop diff --git a/scripts/presets/keyconfig/keymap_data/blender_default.py b/scripts/presets/keyconfig/keymap_data/blender_default.py index 59710102c23..da63e1778e4 100644 --- a/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -736,7 +736,7 @@ def km_window(params): ("wm.batch_rename", {"type": 'F2', "value": 'PRESS', "ctrl": True}, None), ("wm.search_menu", {"type": 'F3', "value": 'PRESS'}, None), op_menu("TOPBAR_MT_file_context_menu", {"type": 'F4', "value": 'PRESS'}), - # Pass through when when no tool-system exists or the fallback isn't available. + # Pass through when no tool-system exists or the fallback isn't available. ("wm.toolbar_fallback_pie", {"type": 'W', "value": 'PRESS', "alt": True}, None), ]) diff --git a/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 97ceedf2c67..604c0ac2562 100644 --- a/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -3412,7 +3412,7 @@ class NODE_PT_tools_active(ToolSelectPanelHelper, Panel): ) # Private tools dictionary, store data to implement `tools_all` & `tools_from_context`. - # The keys is always `None` since nodes don't use use modes to access different tools. + # The keys is always `None` since nodes don't use modes to access different tools. # The values represent the tools, see `ToolSelectPanelHelper` for details. _tools = { None: [ diff --git a/scripts/templates_py/operator_modal_draw.py b/scripts/templates_py/operator_modal_draw.py index 46c8c1dd242..5cb5d91d8e2 100644 --- a/scripts/templates_py/operator_modal_draw.py +++ b/scripts/templates_py/operator_modal_draw.py @@ -50,10 +50,9 @@ class ModalDrawOperator(bpy.types.Operator): def invoke(self, context, event): if context.area.type == 'VIEW_3D': - # the arguments we pass the the callback + # The arguments we pass the callback. args = (self, context) - # Add the region OpenGL drawing callback - # draw in view space with 'POST_VIEW' and 'PRE_VIEW' + # Add the region OpenGL drawing callback draw in view space with `POST_VIEW` and `PRE_VIEW`. self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_PIXEL') self.mouse_path = [] diff --git a/source/blender/animrig/ANIM_action.hh b/source/blender/animrig/ANIM_action.hh index 4f7a9e8083a..daeeecaf574 100644 --- a/source/blender/animrig/ANIM_action.hh +++ b/source/blender/animrig/ANIM_action.hh @@ -709,7 +709,7 @@ static_assert(sizeof(ChannelBag) == sizeof(::ActionChannelBag), /** * Assign the Action to the ID. * - * This will will make a best-effort guess as to which slot to use, in this + * This will make a best-effort guess as to which slot to use, in this * order; * * - By slot handle. diff --git a/source/blender/blenkernel/BKE_editmesh_cache.hh b/source/blender/blenkernel/BKE_editmesh_cache.hh index bca9a0461f0..6d37c3feab0 100644 --- a/source/blender/blenkernel/BKE_editmesh_cache.hh +++ b/source/blender/blenkernel/BKE_editmesh_cache.hh @@ -18,7 +18,7 @@ namespace blender::bke { struct EditMeshData { /** - * Deformed positions calculated by modifiers in the modifier stack that can can process an + * Deformed positions calculated by modifiers in the modifier stack that can process an * edit mesh input. When this is not empty, the other arrays will depend on the values. */ Array vert_positions; diff --git a/source/blender/blenkernel/BKE_preferences.h b/source/blender/blenkernel/BKE_preferences.h index 173e167c2e1..e719d83cdae 100644 --- a/source/blender/blenkernel/BKE_preferences.h +++ b/source/blender/blenkernel/BKE_preferences.h @@ -160,8 +160,7 @@ bool BKE_preferences_asset_shelf_settings_is_catalog_path_enabled(const UserDef /** * Enable a catalog path for a asset shelf identified by \a shelf_idname. Will create the shelf * settings in the Preferences if necessary. - * \return Return true if the catalog was newly enabled. The Preferences should be tagged as dirty - * then. + * \return true if the catalog was newly enabled. The Preferences should be tagged as dirty then. */ bool BKE_preferences_asset_shelf_settings_ensure_catalog_path_enabled(UserDef *userdef, const char *shelf_idname, diff --git a/source/blender/blenkernel/intern/grease_pencil.cc b/source/blender/blenkernel/intern/grease_pencil.cc index 6cf08d242bd..dd44ec4c535 100644 --- a/source/blender/blenkernel/intern/grease_pencil.cc +++ b/source/blender/blenkernel/intern/grease_pencil.cc @@ -1126,7 +1126,7 @@ Layer::SortedKeysIterator Layer::sorted_keys_iterator_at(const int frame_number) if (frame_number < sorted_keys.first()) { return nullptr; } - /* After or at the the last frame, return iterator to last. */ + /* After or at the last frame, return iterator to last. */ if (frame_number >= sorted_keys.last()) { return std::prev(sorted_keys.end()); } diff --git a/source/blender/blenlib/BLI_task.hh b/source/blender/blenlib/BLI_task.hh index 0d712b6c624..9d2826adcfc 100644 --- a/source/blender/blenlib/BLI_task.hh +++ b/source/blender/blenlib/BLI_task.hh @@ -247,7 +247,7 @@ inline void memory_bandwidth_bound_task(const int64_t approximate_bytes_touched, * higher memory bandwidth is available compared to accessing RAM. This value is supposed to be * on the order of the L3 cache size. Accessing that value is not quite straight forward and even * if it was, it's not clear if using the exact cache size would be beneficial because there is - * often more stuff going on on the CPU at the same time. */ + * often more stuff going on the CPU at the same time. */ if (approximate_bytes_touched <= 8 * 1024 * 1024) { function(); return; diff --git a/source/blender/blenlib/intern/convexhull_2d.cc b/source/blender/blenlib/intern/convexhull_2d.cc index 28edf594edf..f55925031ff 100644 --- a/source/blender/blenlib/intern/convexhull_2d.cc +++ b/source/blender/blenlib/intern/convexhull_2d.cc @@ -30,7 +30,7 @@ * Assert that the angles the iterator is looping over are in order. * This works as a general rule however it can fail for large near co-linear edges. * Even though the hull is convex, the angles calculated from the edges may not consistently - * wind in in the same direction. Even when it does occur the angle discrepancy is so small + * wind in the same direction. Even when it does occur the angle discrepancy is so small * that it can be safely ignored. */ // #define USE_ANGLE_ITER_ORDER_ASSERT diff --git a/source/blender/blenlib/intern/math_interp.cc b/source/blender/blenlib/intern/math_interp.cc index 62eccb5beaf..1668933012f 100644 --- a/source/blender/blenlib/intern/math_interp.cc +++ b/source/blender/blenlib/intern/math_interp.cc @@ -249,7 +249,7 @@ BLI_INLINE void bilinear_fl_impl(const float *buffer, const float *row1, *row2, *row3, *row4; const float empty[4] = {0.0f, 0.0f, 0.0f, 0.0f}; - /* Check if +1 samples need wrapping, or we we don't do wrapping then if + /* Check if +1 samples need wrapping, or we don't do wrapping then if * we are sampling completely outside the image. */ if (wrap_x) { if (x2 >= width) { diff --git a/source/blender/compositor/realtime_compositor/cached_resources/COM_van_vliet_gaussian_coefficients.hh b/source/blender/compositor/realtime_compositor/cached_resources/COM_van_vliet_gaussian_coefficients.hh index 17191f5e074..4e13db5d5c4 100644 --- a/source/blender/compositor/realtime_compositor/cached_resources/COM_van_vliet_gaussian_coefficients.hh +++ b/source/blender/compositor/realtime_compositor/cached_resources/COM_van_vliet_gaussian_coefficients.hh @@ -46,17 +46,17 @@ bool operator==(const VanVlietGaussianCoefficientsKey &a, * two parallel second order IIR filters, each having a causal and a non causal filter. */ class VanVlietGaussianCoefficients : public CachedResource { private: - /* The causal and non causal feedforward coefficients for the first second order filter. */ + /* The causal and non causal feedforward coefficients for the first second-order filter. */ double2 first_causal_feedforward_coefficients_; double2 first_non_causal_feedforward_coefficients_; /* The feedback coefficients for the first second order filter. This is the same for both the * causal and non causal filters. */ double2 first_feedback_coefficients_; - /* The causal and non causal feedforward coefficients for the second second order filter. */ + /* The causal and non causal feedforward coefficients for the second second-order filter. */ double2 second_causal_feedforward_coefficients_; double2 second_non_causal_feedforward_coefficients_; - /* The feedback coefficients for the second second order filter. This is the same for both the + /* The feedback coefficients for the second second-order filter. This is the same for both the * causal and non causal filters. */ double2 second_feedback_coefficients_; diff --git a/source/blender/compositor/realtime_compositor/cached_resources/intern/van_vliet_gaussian_coefficients.cc b/source/blender/compositor/realtime_compositor/cached_resources/intern/van_vliet_gaussian_coefficients.cc index 5e5416e55bb..2341c1107dc 100644 --- a/source/blender/compositor/realtime_compositor/cached_resources/intern/van_vliet_gaussian_coefficients.cc +++ b/source/blender/compositor/realtime_compositor/cached_resources/intern/van_vliet_gaussian_coefficients.cc @@ -128,7 +128,7 @@ static double find_scale_factor(const std::array, 4> &poles { const double reference_variance = math::square(reference_sigma); - /* Note that the poles were computed for a Gaussian filter with a sigma value of 2, so it it + /* Note that the poles were computed for a Gaussian filter with a sigma value of 2, so it is * as if we have a base scale of 2, and we start with half sigma as an initial guess. See * Section 4.2 for more information */ double scale_factor = reference_sigma / 2.0; diff --git a/source/blender/compositor/realtime_compositor/shaders/compositor_parallel_reduction.glsl b/source/blender/compositor/realtime_compositor/shaders/compositor_parallel_reduction.glsl index ab423e863b6..1bcc2c9cbad 100644 --- a/source/blender/compositor/realtime_compositor/shaders/compositor_parallel_reduction.glsl +++ b/source/blender/compositor/realtime_compositor/shaders/compositor_parallel_reduction.glsl @@ -56,9 +56,9 @@ void main() { ivec2 texel = ivec2(gl_GlobalInvocationID.xy); - /* Initialize the shared array for out of bound invocations using the IDENTITY value. The - * developer is expected to define the IDENTITY macro to be a value of type TYPE that does not - * affect the output of the reduction. For instance, sum reductions have an identity of 0.0, + /* Initialize the shared array for out of bound invocations using the `IDENTITY` value. The + * developer is expected to define the `IDENTITY` macro to be a value of type `TYPE` that does + * not affect the output of the reduction. For instance, sum reductions have an identity of 0.0, * while max value reductions have an identity of FLT_MIN */ if (any(lessThan(texel, ivec2(0))) || any(greaterThanEqual(texel, texture_size(input_tx)))) { reduction_data[gl_LocalInvocationIndex] = IDENTITY; diff --git a/source/blender/draw/engines/eevee_next/eevee_material.cc b/source/blender/draw/engines/eevee_next/eevee_material.cc index deadf652852..23dacabd43b 100644 --- a/source/blender/draw/engines/eevee_next/eevee_material.cc +++ b/source/blender/draw/engines/eevee_next/eevee_material.cc @@ -330,7 +330,7 @@ Material &MaterialModule::material_sync(Object *ob, mat.shading = material_pass_get(ob, blender_mat, surface_pipe, geometry_type); if (hide_on_camera) { /* Only null the sub_pass. - * mat.shading.gpumat is is always needed for using the GPU_material API. */ + * `mat.shading.gpumat` is always needed for using the GPU_material API. */ mat.shading.sub_pass = nullptr; } diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_ray_trace_screen_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_ray_trace_screen_lib.glsl index 1995f320b6a..e1d219777c3 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_ray_trace_screen_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_ray_trace_screen_lib.glsl @@ -224,7 +224,7 @@ ScreenTraceHitData raytrace_planar(RayTraceData rt_data, #endif /* Modify the ray origin before tracing it. We must do this because ray origin is implicitly - * reconstructed from from gbuffer depth which we cannot modify. */ + * reconstructed from gbuffer depth which we cannot modify. */ Ray raytrace_thickness_ray_amend(Ray ray, ClosureUndetermined cl, vec3 V, float thickness) { switch (cl.type) { diff --git a/source/blender/editors/interface/interface_intern.hh b/source/blender/editors/interface/interface_intern.hh index 83946e1fd79..6096b320015 100644 --- a/source/blender/editors/interface/interface_intern.hh +++ b/source/blender/editors/interface/interface_intern.hh @@ -1657,7 +1657,7 @@ blender::Vector get_property_drivers( * * \param src_drivers: The span of drivers to paste. If `is_array_prop` is * false, this must be a single element. If `is_array_prop` is true then this - * should have the same length as the the destination array property. Nullptr + * should have the same length as the destination array property. Nullptr * elements are skipped when pasting. * \param is_array_prop: Whether `src_drivers` are drivers for the elements * of an array property. diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 44d8ba81e1b..894e6f5a5d9 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -4177,7 +4177,7 @@ static Set find_sockets_on_active_gizmo_paths(const bContex } snode.edittree->ensure_topology_cache(); - /* Compute compute context hash for the current node tree path. */ + /* Compute the compute context hash for the current node tree path. */ std::optional current_compute_context_hash = [&]() -> std::optional { ComputeContextBuilder compute_context_builder; diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_tex_gabor.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_tex_gabor.glsl index be8f2fdfd09..f962f53478b 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_tex_gabor.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_tex_gabor.glsl @@ -198,7 +198,7 @@ float compute_3d_gabor_standard_deviation(float frequency) return sqrt(IMPULSES_COUNT * second_moment * integral_of_gabor_squared); } -/* Computes the orientation of the Gabor kernel such that it is is constant for anisotropic +/* Computes the orientation of the Gabor kernel such that it is constant for anisotropic * noise while it is random for isotropic noise. We randomize in spherical coordinates for a * uniform distribution. */ vec3 compute_3d_orientation(vec3 orientation, float isotropy, vec4 seed) diff --git a/source/blender/io/usd/intern/usd_blend_shape_utils.cc b/source/blender/io/usd/intern/usd_blend_shape_utils.cc index ca92e055713..0d872541bbc 100644 --- a/source/blender/io/usd/intern/usd_blend_shape_utils.cc +++ b/source/blender/io/usd/intern/usd_blend_shape_utils.cc @@ -270,8 +270,7 @@ void create_blend_shapes(pxr::UsdStageRefPtr stage, skel_api.CreateBlendShapeTargetsRel().SetTargets(blendshape_paths); /* Some DCCs seem to require joint indices and weights to - * bind the skeleton for blend-shapes, so we we create these - * primvars, if needed. */ + * bind the skeleton for blend-shapes, so we create these primvars, if needed. */ if (!skel_api.GetJointIndicesAttr().HasAuthoredValue()) { pxr::VtArray joint_indices(basis_totelem, 0); diff --git a/source/blender/io/usd/intern/usd_writer_material.cc b/source/blender/io/usd/intern/usd_writer_material.cc index dcc24b71b1d..9d179df0f78 100644 --- a/source/blender/io/usd/intern/usd_writer_material.cc +++ b/source/blender/io/usd/intern/usd_writer_material.cc @@ -257,7 +257,7 @@ static void create_usd_preview_surface_material(const USDExporterContext &usd_ex if (scale_link) { bNode *vector_math_node = scale_link->fromnode; if (vector_math_node->custom1 == NODE_VECTOR_MATH_MULTIPLY_ADD) { - /* Attempt one more traversal in case the current node is not not the + /* Attempt one more traversal in case the current node is not the * correct NODE_VECTOR_MATH_MULTIPLY_ADD (see code in usd_reader_material). */ bNodeSocket *sock_current = bke::nodeFindSocket(vector_math_node, SOCK_IN, "Vector"); bNodeLink *temp_link = traverse_channel(sock_current, SH_NODE_VECTOR_MATH); diff --git a/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc b/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc index a3e7e0faf49..d33b1b242f1 100644 --- a/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc +++ b/source/blender/nodes/composite/nodes/node_composite_cryptomatte.cc @@ -603,7 +603,7 @@ class CryptoMatteOperation : public BaseCryptoMatteOperation { int layer_index; const std::string type_name = get_type_name(); LISTBASE_FOREACH_INDEX (RenderLayer *, render_layer, &image->rr->layers, layer_index) { - /* If the Cryptomatte type name name doesn't start with the layer name, then it is not a + /* If the Cryptomatte type name doesn't start with the layer name, then it is not a * Cryptomatte layer. Unless it is an unnamed layer, in which case, we need to check its * passes. */ const bool is_unnamed_layer = render_layer->name[0] == '\0'; diff --git a/source/blender/nodes/composite/nodes/node_composite_file_output.cc b/source/blender/nodes/composite/nodes/node_composite_file_output.cc index 5bc04c04da8..2b64245ad73 100644 --- a/source/blender/nodes/composite/nodes/node_composite_file_output.cc +++ b/source/blender/nodes/composite/nodes/node_composite_file_output.cc @@ -708,7 +708,7 @@ class FileOutputOperation : public NodeOperation { } /* Add Cryptomatte meta data to the file if they exist for the given result of the given layer - * name. We do not write any other other meta data for now. */ + * name. We do not write any other meta data for now. */ void add_meta_data_for_result(FileOutput &file_output, const Result &result, const char *name) { StringRef cryptomatte_layer_name = bke::cryptomatte::BKE_cryptomatte_extract_layer_name(name); diff --git a/source/blender/nodes/geometry/nodes/node_geo_proximity.cc b/source/blender/nodes/geometry/nodes/node_geo_proximity.cc index f5acf1b5d31..5367fcc4f92 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_proximity.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_proximity.cc @@ -232,7 +232,7 @@ class ProximityFunction : public mf::MultiFunction { const BVHTrees &trees = bvh_trees_[group_index]; BVHTreeNearest nearest; /* Take mesh and pointcloud bvh tree into account. The final result is the closer of the two. - * First first bvhtree query will set `nearest.dist_sq` which is then passed into the second + * The first bvhtree query will set `nearest.dist_sq` which is then passed into the second * query as a maximum distance. */ nearest.dist_sq = FLT_MAX; if (trees.mesh_bvh.tree != nullptr) { diff --git a/source/blender/python/intern/bpy_rna_context.cc b/source/blender/python/intern/bpy_rna_context.cc index c058e38e3a3..b6eded92488 100644 --- a/source/blender/python/intern/bpy_rna_context.cc +++ b/source/blender/python/intern/bpy_rna_context.cc @@ -341,7 +341,7 @@ static PyObject *bpy_rna_context_temp_override_exit(BPyContextTempOverride *self } } - /* Account for for the window to be freed on file-read, + /* Account for the window to be freed on file-read, * in this case the window should not be restored, see: #92818. * Also account for other windowing members to be removed on exit, * in this case the context is cleared. */