Cleanup: spelling in comments & punctuation

This commit is contained in:
Campbell Barton 2024-04-19 15:50:28 +10:00
parent 0ceefd6358
commit 4e8b24f1d1
14 changed files with 16 additions and 16 deletions

@ -3389,7 +3389,7 @@ static void data_device_handle_drop(void *data, wl_data_device * /*wl_data_devic
GHOST_TDragnDropTypes ghost_dnd_type = GHOST_kDragnDropTypeUnknown;
void *ghost_dnd_data = nullptr;
/* Failure to receive drop data . */
/* Failure to receive drop data. */
if (mime_receive == ghost_wl_mime_text_uri) {
const char file_proto[] = "file://";
/* NOTE: some applications CRLF (`\r\n`) GTK3 for e.g. & others don't `pcmanfm-qt`.

@ -1219,7 +1219,7 @@ static void xdg_toplevel_handle_wm_capabilities(void * /*data*/,
/* Only available in interface version 5. */
CLOG_INFO(LOG, 2, "wm_capabilities");
/* NOTE: this would be useful if blender had CSD, . */
/* NOTE: this would be useful if blender had CSD. */
}
static const xdg_toplevel_listener xdg_toplevel_listener = {

@ -3,7 +3,7 @@ BF_DIST_BIN=$(dirname "$0")
BF_PROGRAM="blender"
# Add own lib folder first, because Steam or other environments may set an
# LD_LIBRARY_PATH that has priority over the runpath in the Blender excutable,
# $LD_LIBRARY_PATH that has priority over the run-path in the Blender executable,
# but contains incompatible libraries.
LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}

@ -46,7 +46,7 @@ BLENDER_ENV = "bpy" in sys.modules
# -----------------------------------------------------------------------------
# Programs
# The command `xdg-mime` handles most of the file assosiation actions.
# The command `xdg-mime` handles most of the file association actions.
XDG_MIME_PROG = shutil.which("xdg-mime") or ""
# Initialize by `bpy` or command line arguments.

@ -2869,7 +2869,7 @@ void GreasePencil::remove_layer(blender::bke::greasepencil::Layer &layer)
const Layer *active_layer = this->get_active_layer();
if (active_layer == &layer) {
Span<const Layer *> layers = this->layers();
/* If there is no other layer available , unset the active layer. */
/* If there is no other layer available, unset the active layer. */
if (layers.size() == 1) {
this->set_active_layer(nullptr);
}

@ -787,7 +787,7 @@ static void gpu_texture_update_from_ibuf(
IMB_colormanagement_space_is_scene_linear(ibuf->byte_buffer.colorspace) ||
IMB_colormanagement_space_is_data(ibuf->byte_buffer.colorspace))
{
/* sRGB or scene linear or scaled down non-color data , store as byte texture that the GPU
/* sRGB or scene linear or scaled down non-color data, store as byte texture that the GPU
* can decode directly. */
rect = (uchar *)MEM_mallocN(sizeof(uchar[4]) * w * h, __func__);
if (rect == nullptr) {

@ -312,7 +312,7 @@ struct Rows {
* - The second source pixel must be a neighbor pixel of the first source, or the same as the
* first source when no second pixel could be found.
* - The second source pixel must be a pixel that is painted on by the brush.
* - The second source pixel must be the second closest pixel , or the first source
* - The second source pixel must be the second closest pixel, or the first source
* when no second pixel could be found.
*/
int2 find_second_source(int2 destination, int2 first_source)

@ -88,8 +88,8 @@ int BLI_astar_node_link_other_node(BLI_AStarGNLink *lnk, int idx);
/**
* Initialize a solution data for given A* graph. Does not compute anything!
*
* \param custom_data: an opaque pointer attached to this link, available e.g
* . to cost callback function.
* \param custom_data: an opaque pointer attached to this link, available e.g.
* to cost callback function.
*
* \note BLI_AStarSolution stores nearly all data needed during solution compute.
*/

@ -24,7 +24,7 @@ uint horizon_scan_angles_to_bitmask(vec2 theta)
/* Algorithm 1, line 18. Re-ordered to make sure to clamp to the hemisphere range. */
vec2 ratio = saturate(theta * M_1_PI + 0.5);
uint a = uint(floor(float(bitmask_len) * ratio.x));
/* The paper is wrong here. The additional half Pi is not needed . */
/* The paper is wrong here. The additional half Pi is not needed. */
uint b = uint(ceil(float(bitmask_len) * (ratio.y - ratio.x)));
/* Algorithm 1, line 19. */
return (((b < 32u) ? 1u << b : 0u) - 1u) << a;

@ -293,7 +293,7 @@ static const Span<const char *> text_format_glsl_literals_reserved(
* https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.pdf
*/
static const char *text_format_glsl_literals_specialvar_data[] = {
/* Force single column , sorted list */
/* Force single column, sorted list */
/* clang-format off */
"gl_ClipDistance",
"gl_FragCoord",

@ -674,8 +674,8 @@ void GPU_texture_free(GPUTexture *texture);
* Create an alias of the source texture data. A view can cover the whole texture or only a range
* of mip levels and/or array layer range.
*
* \a view_format is the format in which the view will interpret the data of \a source_texture . It
* must match the format of \a source_texture in size (ex: RGBA8 can be reinterpreted as R32UI).
* \a view_format is the format in which the view will interpret the data of \a source_texture.
* It must match the format of \a source_texture in size (ex: RGBA8 can be reinterpreted as R32UI).
* See https://www.khronos.org/opengl/wiki/Texture_Storage#View_texture_aliases for an exhaustive
* list.
*

@ -544,7 +544,7 @@ void gpu_shader_create_info_init()
/* NOTE: As atomic data types can alter shader gen if native atomics are unsupported, we need
* to use differing create info's to handle the tile optimized check. This does prevent
* the shadow techniques from being dynamically switchable . */
* the shadow techniques from being dynamically switchable. */
const bool is_tile_based_arch = (GPU_platform_architecture() == GPU_ARCHITECTURE_TBDR);
if (is_tile_based_arch) {
eevee_shadow_data = eevee_shadow_data_non_atomic;

@ -164,7 +164,7 @@ EQCurveMappingData *SEQ_sound_equalizer_add(SoundEqualizerModifierData *semd,
if (minX < 0) {
minX = 0.0;
}
/* It's the same as BKE_curvemapping_add , but changing the name */
/* It's the same as #BKE_curvemapping_add, but changing the name. */
eqcmd = MEM_cnew<EQCurveMappingData>("Equalizer");
BKE_curvemapping_set_defaults(&eqcmd->curve_mapping,
1, /* Total. */

@ -23,7 +23,7 @@
#endif
/* -------------------------------------------------------------------- */
/** \name Register File Assosiation
/** \name Register File Association
* \{ */
bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_msg)