Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2024-05-28 13:42:16 +10:00
parent c110d26c61
commit ca9b105e6c
8 changed files with 19 additions and 16 deletions

@ -349,7 +349,7 @@ ccl_device int bsdf_hair_chiang_sample(KernelGlobals kg,
kernel_assert(fabsf(dot(X, Y)) < 1e-3f);
const float3 Z = safe_normalize(cross(X, Y));
/* wo in pbrt. */
/* `wo` in PBRT. */
const float3 local_O = make_float3(dot(sd->wi, X), dot(sd->wi, Y), dot(sd->wi, Z));
const float sin_theta_o = local_O.x;

@ -2,8 +2,8 @@
#
# SPDX-License-Identifier: GPL-2.0-or-later
# Global settings used by all scripts in this dir.
# XXX Before any use of the tools in this dir, please make a copy of this file
# Global settings used by all scripts in this directory.
# XXX Before any use of the tools in this directory, please make a copy of this file
# named "setting.py"
# XXX This is a template, most values should be OK, but some youll have to
# edit (most probably, BLENDER_EXEC and SOURCE_DIR).
@ -633,7 +633,7 @@ ASSET_CATALOG_FILE = "blender_assets.cats.txt"
REL_FILE_NAME_POT = os.path.join(REL_WORK_DIR, DOMAIN + ".pot")
# Mo path generator for a given language (relative to any "locale" dir).
# Mo path generator for a given language (relative to any "locale" directory).
MO_PATH_ROOT_RELATIVE = os.path.join("locale")
MO_PATH_TEMPLATE_RELATIVE = os.path.join(MO_PATH_ROOT_RELATIVE, "{}", "LC_MESSAGES")
@ -659,10 +659,10 @@ SPELL_CACHE = os.path.join("/tmp", ".spell_cache")
# Threshold defining whether a new msgid is similar enough with an old one to reuse its translation...
SIMILAR_MSGID_THRESHOLD = 0.75
# Additional import paths to add to sys.path (';' separated)...
# Additional import paths to add to `sys.path` (';' separated)...
INTERN_PY_SYS_PATHS = ""
# Custom override settings must be one dir above i18n tools itself!
# Custom override settings must be one directory above i18n tools itself!
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
try:
from bl_i18n_settings_override import *

@ -63,8 +63,8 @@ def find_image_sequences(files):
>>> list(find_image_sequences([
... "test2-001.jp2", "test2-002.jp2",
... "test3-003.jp2", "test3-004.jp2", "test3-005.jp2", "test3-006.jp2",
... "blaah"]))
[("blaah", 1, 1), ("test2-001.jp2", 1, 2), ("test3-003.jp2", 3, 4)]
... "blah"]))
[("blah", 1, 1), ("test2-001.jp2", 1, 2), ("test3-003.jp2", 3, 4)]
"""
from itertools import count
@ -125,7 +125,7 @@ def find_image_sequences(files):
def load_images(filenames, directory, force_reload=False, frame_start=1, find_sequences=False):
"""Wrapper for bpy's load_image
"""Wrapper for `bpy_extras.image_utils.load_image`.
Loads a set of images, movies, or even image sequences
Returns a generator of ImageSpec wrapper objects later used for texture setup
@ -303,7 +303,7 @@ def clean_node_tree(node_tree):
def get_shadeless_node(dest_node_tree):
"""Return a "shadless" cycles/eevee node, creating a node group if nonexistent"""
"""Return a "shadeless" cycles/EEVEE node, creating a node group if nonexistent"""
try:
node_tree = bpy.data.node_groups['IAP_SHADELESS']
@ -915,7 +915,7 @@ class IMAGE_OT_import_as_mesh_planes(AddObjectHelper, ImportHelper, Operator):
material.emit = self.emit_strength if shader == 'EMISSION' else 0.0
# -------------------------------------------------------------------------
# Cycles/Eevee
# Cycles/EEVEE
def create_cycles_texnode(self, node_tree, img_spec):
tex_image = node_tree.nodes.new('ShaderNodeTexImage')
tex_image.image = img_spec.image

@ -167,7 +167,8 @@ void main()
ivec2 texel_fullres = ivec2(gl_LocalInvocationID.xy + tile_coord * tile_size);
vec2 uv = (vec2(texel_fullres) + 0.5) * uniform_buf.raytrace.full_resolution_inv;
/* Check if texel is out of bounds, so we can utilize fast texture funcs and early-out if not. */
/* Check if texel is out of bounds,
* so we can utilize fast texture functions and early-out if not. */
if (any(greaterThanEqual(texel_fullres, imageSize(in_radiance_img).xy))) {
return;
}

@ -24,7 +24,8 @@ void main()
ivec2 texel_fullres = texel * uniform_buf.raytrace.resolution_scale +
uniform_buf.raytrace.resolution_bias;
/* Check if texel is out of bounds, so we can utilize fast texture funcs and early-out if not. */
/* Check if texel is out of bounds,
* so we can utilize fast texture functions and early-out if not. */
if (any(greaterThanEqual(texel, imageSize(ray_time_img).xy))) {
return;
}

@ -23,7 +23,8 @@ void main()
uvec2 tile_coord = unpackUvec2x16(tiles_coord_buf[gl_WorkGroupID.x]);
ivec2 texel = ivec2(gl_LocalInvocationID.xy + tile_coord * tile_size);
/* Check if texel is out of bounds, so we can utilize fast texture funcs and early-out if not. */
/* Check if texel is out of bounds,
* so we can utilize fast texture functions and early-out if not. */
if (any(greaterThanEqual(texel, imageSize(ray_time_img).xy))) {
return;
}

@ -23,7 +23,7 @@ void main()
ivec2 texel = ivec2(gl_LocalInvocationID.xy + tile_coord * tile_size);
/* Check whether texel is out of bounds for all cases, so we can utilize fast
* texture funcs and early exit if not. */
* texture functions and early exit if not. */
if (any(greaterThanEqual(texel, imageSize(ray_data_img).xy)) || any(lessThan(texel, ivec2(0)))) {
return;
}

@ -4051,7 +4051,7 @@ static void ui_do_but_textedit(
ED_region_tag_redraw(data->region);
if (!data->searchbox) {
/* In case of popup regions, tag for popup refreshing too (contents may have changed). Not
* done for searchboxes, since they have their own update handling. */
* done for search-boxes, since they have their own update handling. */
ED_region_tag_refresh_ui(data->region);
}
}