Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2023-05-27 15:24:52 +10:00
parent 848a886569
commit 12d91d4e60
12 changed files with 18 additions and 18 deletions

@ -36,7 +36,7 @@ KERNEL_STRUCT_MEMBER(background, int, map_res_x)
KERNEL_STRUCT_MEMBER(background, int, map_res_y)
/* Multiple importance sampling. */
KERNEL_STRUCT_MEMBER(background, int, use_mis)
/* Lightgroup. */
/* Light-group. */
KERNEL_STRUCT_MEMBER(background, int, lightgroup)
/* Light Index. */
KERNEL_STRUCT_MEMBER(background, int, light_index)

@ -288,7 +288,7 @@ ccl_device_inline float object_pass_id(KernelGlobals kg, int object)
return kernel_data_fetch(objects, object).pass_id;
}
/* Lightgroup of lamp */
/* Light-group of lamp. */
ccl_device_inline int lamp_lightgroup(KernelGlobals kg, int lamp)
{
@ -298,7 +298,7 @@ ccl_device_inline int lamp_lightgroup(KernelGlobals kg, int lamp)
return kernel_data_fetch(lights, lamp).lightgroup;
}
/* Lightgroup of object */
/* Light-group of object. */
ccl_device_inline int object_lightgroup(KernelGlobals kg, int object)
{

@ -221,7 +221,7 @@ integrate_direct_light_shadow_init_common(KernelGlobals kg,
state, path, bounce);
}
/* Write Lightgroup, +1 as lightgroup is int but we need to encode into a uint8_t. */
/* Write Light-group, +1 as light-group is int but we need to encode into a uint8_t. */
INTEGRATOR_STATE_WRITE(shadow_state, shadow_path, lightgroup) = light_group;
#ifdef __PATH_GUIDING__

@ -879,7 +879,7 @@ ccl_device_forceinline void integrate_volume_direct_light(
state, path, transmission_bounce);
INTEGRATOR_STATE_WRITE(shadow_state, shadow_path, throughput) = throughput_phase;
/* Write Lightgroup, +1 as lightgroup is int but we need to encode into a uint8_t. */
/* Write Light-group, +1 as light-group is int but we need to encode into a uint8_t. */
INTEGRATOR_STATE_WRITE(
shadow_state, shadow_path, lightgroup) = (ls.type != LIGHT_BACKGROUND) ?
ls.group + 1 :

@ -113,7 +113,7 @@ MINLINE float scalenorm(float a, float b, float x);
*/
MINLINE double scalenormd(double a, double b, double x);
/* NOTE: Compilers will upcast all types smaller than int to int when performing arithmetic
/* NOTE: Compilers will up-cast all types smaller than int to int when performing arithmetic
* operation. */
MINLINE int square_s(short a);

@ -2675,11 +2675,11 @@ static void direct_link_library(FileData *fd, Library *lib, Main *main)
Main *newmain;
/* Make sure we have full path in lib->filepath_abs */
/* Note that since existing libs are searched by their absolute path, this has to be generated
/* NOTE: Since existing libraries are searched by their absolute path, this has to be generated
* before the lookup below. Otherwise, in case the stored absolute filepath is not 'correct' (may
* be empty, or have been stored in a different 'relative path context'), the comparison below
* will always fail, leading to creating duplicates IDs of a same library. */
/* TODO: May be worth checking whether conparison below could use `lib->filepath` instead? */
/* TODO: May be worth checking whether comparison below could use `lib->filepath` instead? */
STRNCPY(lib->filepath_abs, lib->filepath);
BLI_path_abs(lib->filepath_abs, fd->relabase);
BLI_path_normalize(lib->filepath_abs);

@ -44,10 +44,10 @@
/**
* The code below uses a prefix naming convention to indicate the coordinate space:
* cu: Local space of the curves object that is being edited.
* su: Local space of the surface object.
* wo: World space.
* re: 2D coordinates within the region.
* `cu`: Local space of the curves object that is being edited.
* `su`: Local space of the surface object.
* `wo`: World space.
* `re`: 2D coordinates within the region.
*/
namespace blender::ed::sculpt_paint {

@ -503,7 +503,7 @@ typedef struct Object {
ObjectLineArt lineart;
/** Lightgroup membership information. */
/** Light-group membership information. */
struct LightgroupMembership *lightgroup;
/** Light linking information. */

@ -180,8 +180,8 @@ typedef struct Panel {
* There are 16 defines because the expansion data is typically stored in a short.
*
* \note Expansion for instanced panels is stored in depth first order. For example, the value of
* UI_SUBPANEL_DATA_EXPAND_2 correspond to mean the expansion of the second subpanel or the first
* subpanel's first subpanel.
* UI_SUBPANEL_DATA_EXPAND_2 correspond to mean the expansion of the second sub-panel or the first
* sub-panel's first sub-panel.
*/
typedef enum uiPanelDataExpansion {
UI_PANEL_DATA_EXPAND_ROOT = (1 << 0),

@ -164,7 +164,7 @@ typedef struct Sequence {
int len;
/**
* Start frame of contents of strip in absolute frame coordinates.
* For metastrips start of first strip startdisp.
* For meta-strips start of first strip startdisp.
*/
float start;
/**

@ -73,7 +73,7 @@ typedef struct World {
/* nodes */
struct bNodeTree *nodetree;
/* Lightgroup membership information. */
/** Light-group membership information. */
struct LightgroupMembership *lightgroup;
/** Runtime. */

@ -1398,7 +1398,7 @@ static bool ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr C_void_pt
WM_event_add_notifier(C, NC_WINDOW | NA_EDITED, NULL);
#if defined(__APPLE__) || defined(WIN32)
/* OSX and Win32 don't return to the mainloop while resize */
/* MACOS and WIN32 don't return to the main-loop while resize. */
wm_window_timer(C);
wm_event_do_handlers(C);
wm_event_do_notifiers(C);