Cleanup: spelling

This commit is contained in:
Campbell Barton
2020-07-15 13:11:22 +10:00
parent 061d76f55c
commit e062def3b4
13 changed files with 23 additions and 23 deletions

View File

@@ -362,8 +362,8 @@ extern GHOST_TSuccess GHOST_HasCursorShape(GHOST_WindowHandle windowhandle,
* \param mask The mask data for the cursor. * \param mask The mask data for the cursor.
* \param sizex The width of the cursor * \param sizex The width of the cursor
* \param sizey The height of the cursor * \param sizey The height of the cursor
* \param hotX The X coordinate of the cursor hotspot. * \param hotX The X coordinate of the cursor hot-spot.
* \param hotY The Y coordinate of the cursor hotspot. * \param hotY The Y coordinate of the cursor hot-spot.
* \param canInvertColor Let macOS invert cursor color to match platform convention. * \param canInvertColor Let macOS invert cursor color to match platform convention.
* \return Indication of success. * \return Indication of success.
*/ */

View File

@@ -287,8 +287,8 @@ class GHOST_IWindow {
* Set the shape of the cursor to a custom cursor. * Set the shape of the cursor to a custom cursor.
* \param bitmap The bitmap data for the cursor. * \param bitmap The bitmap data for the cursor.
* \param mask The mask data for the cursor. * \param mask The mask data for the cursor.
* \param hotX The X coordinate of the cursor hotspot. * \param hotX The X coordinate of the cursor hot-spot.
* \param hotY The Y coordinate of the cursor hotspot. * \param hotY The Y coordinate of the cursor hot-spot.
* \return Indication of success. * \return Indication of success.
*/ */
virtual GHOST_TSuccess setCustomCursorShape(GHOST_TUns8 *bitmap, virtual GHOST_TSuccess setCustomCursorShape(GHOST_TUns8 *bitmap,

View File

@@ -124,8 +124,8 @@ class GHOST_Window : public GHOST_IWindow {
* Set the shape of the cursor to a custom cursor. * Set the shape of the cursor to a custom cursor.
* \param bitmap The bitmap data for the cursor. * \param bitmap The bitmap data for the cursor.
* \param mask The mask data for the cursor. * \param mask The mask data for the cursor.
* \param hotX The X coordinate of the cursor hotspot. * \param hotX The X coordinate of the cursor hot-spot.
* \param hotY The Y coordinate of the cursor hotspot. * \param hotY The Y coordinate of the cursor hot-spot.
* \return Indication of success. * \return Indication of success.
*/ */
GHOST_TSuccess setCustomCursorShape(GHOST_TUns8 *bitmap, GHOST_TSuccess setCustomCursorShape(GHOST_TUns8 *bitmap,

View File

@@ -28,7 +28,7 @@
* a call to a BLI function that is not prototyped here, please add a * a call to a BLI function that is not prototyped here, please add a
* prototype here. The library offers mathematical operations (mainly * prototype here. The library offers mathematical operations (mainly
* vector and matrix calculus), an abstraction layer for file i/o, * vector and matrix calculus), an abstraction layer for file i/o,
* functions for calculating Perlin noise, scanfilling services for * functions for calculating Perlin noise, scan-filling services for
* triangles, and a system for guarded memory * triangles, and a system for guarded memory
* allocation/deallocation. There is also a patch to make MS Windows * allocation/deallocation. There is also a patch to make MS Windows
* behave more or less Posix-compliant. * behave more or less Posix-compliant.

View File

@@ -291,7 +291,7 @@ eFileAttributes BLI_file_attributes(const char *path)
/* Return alias/shortcut file target. Apple version is defined in storage_apple.mm */ /* Return alias/shortcut file target. Apple version is defined in storage_apple.mm */
#ifndef __APPLE__ #ifndef __APPLE__
bool BLI_file_alias_target( bool BLI_file_alias_target(
/* This parameter can only be const on non-windows plaforms. /* This parameter can only be const on non-windows platforms.
* NOLINTNEXTLINE: readability-non-const-parameter. */ * NOLINTNEXTLINE: readability-non-const-parameter. */
char target[FILE_MAXDIR], char target[FILE_MAXDIR],
const char *filepath) const char *filepath)

View File

@@ -315,7 +315,7 @@ static void blo_update_defaults_scene(Main *bmain, Scene *scene)
copy_v2_fl2(scene->safe_areas.title, 0.1f, 0.05f); copy_v2_fl2(scene->safe_areas.title, 0.1f, 0.05f);
copy_v2_fl2(scene->safe_areas.action, 0.035f, 0.035f); copy_v2_fl2(scene->safe_areas.action, 0.035f, 0.035f);
/* Change default cubemap quality. */ /* Change default cube-map quality. */
scene->eevee.gi_filter_quality = 3.0f; scene->eevee.gi_filter_quality = 3.0f;
/* Enable Soft Shadows by default. */ /* Enable Soft Shadows by default. */

View File

@@ -486,7 +486,7 @@ void EEVEE_downsample_buffer(EEVEE_Data *vedata, GPUTexture *texture_src, int le
} }
/** /**
* Simple down-sampling algorithm for cubemap. Reconstruct mip chain up to mip level. * Simple down-sampling algorithm for cube-map. Reconstruct mip chain up to mip level.
*/ */
void EEVEE_downsample_cube_buffer(EEVEE_Data *vedata, GPUTexture *texture_src, int level) void EEVEE_downsample_cube_buffer(EEVEE_Data *vedata, GPUTexture *texture_src, int level)
{ {

View File

@@ -113,7 +113,7 @@ typedef struct EEVEE_LightBake {
float samples_ct, invsamples_ct; float samples_ct, invsamples_ct;
/** Sampling bias during convolution step. */ /** Sampling bias during convolution step. */
float lod_factor; float lod_factor;
/** Max cubemap LOD to sample when convolving. */ /** Max cube-map LOD to sample when convolving. */
float lod_max; float lod_max;
/** Number of probes to render + world probe. */ /** Number of probes to render + world probe. */
int cube_len, grid_len; int cube_len, grid_len;
@@ -121,7 +121,7 @@ typedef struct EEVEE_LightBake {
/* Irradiance grid */ /* Irradiance grid */
/** Current probe being rendered (UBO data). */ /** Current probe being rendered (UBO data). */
EEVEE_LightGrid *grid; EEVEE_LightGrid *grid;
/** Target cubemap at MIP 0. */ /** Target cube-map at MIP 0. */
int irr_cube_res; int irr_cube_res;
/** Size of the irradiance texture. */ /** Size of the irradiance texture. */
int irr_size[3]; int irr_size[3];
@@ -145,7 +145,7 @@ typedef struct EEVEE_LightBake {
/* Reflection probe */ /* Reflection probe */
/** Current probe being rendered (UBO data). */ /** Current probe being rendered (UBO data). */
EEVEE_LightProbe *cube; EEVEE_LightProbe *cube;
/** Target cubemap at MIP 0. */ /** Target cube-map at MIP 0. */
int ref_cube_res; int ref_cube_res;
/** Index of the current cube. */ /** Index of the current cube. */
int cube_offset; int cube_offset;

View File

@@ -314,7 +314,7 @@ static void gizmo_cage3d_draw_intern(
} }
if (select) { if (select) {
/* expand for hotspot */ /* Expand for hot-spot. */
#if 0 #if 0
const float size[3] = { const float size[3] = {
size_real[0] + margin[0] / 2, size_real[0] + margin[0] / 2,

View File

@@ -55,10 +55,10 @@ static void UVsToTransData(const float aspect[2],
float calc_dist, float calc_dist,
bool selected) bool selected)
{ {
/* uv coords are scaled by aspects. this is needed for rotations and /* UV coords are scaled by aspects. this is needed for rotations and
* proportional editing to be consistent with the stretched uv coords * proportional editing to be consistent with the stretched UV coords
* that are displayed. this also means that for display and numinput, * that are displayed. this also means that for display and number-input,
* and when the uv coords are flushed, these are converted each time */ * and when the UV coords are flushed, these are converted each time. */
td2d->loc[0] = uv[0] * aspect[0]; td2d->loc[0] = uv[0] * aspect[0];
td2d->loc[1] = uv[1] * aspect[1]; td2d->loc[1] = uv[1] * aspect[1];
td2d->loc[2] = 0.0f; td2d->loc[2] = 0.0f;
@@ -202,7 +202,7 @@ static void uv_set_connectivity_distance(BMesh *bm, float *dists, const float as
sub_v2_v2v2(uvdiff, connected_uv, other_uv); sub_v2_v2v2(uvdiff, connected_uv, other_uv);
/* Check if this loop is connected in UV space. /* Check if this loop is connected in UV space.
* If the uv loops share the same selection state (if not, they are not connected as * If the uv loops share the same selection state (if not, they are not connected as
* they have been ripped or other edit commands have seperated them). */ * they have been ripped or other edit commands have separated them). */
bool connected = other_vert_sel == connected_vert_sel && bool connected = other_vert_sel == connected_vert_sel &&
fabsf(uvdiff[0]) < STD_UV_CONNECT_LIMIT && fabsf(uvdiff[0]) < STD_UV_CONNECT_LIMIT &&
fabsf(uvdiff[1]) < STD_UV_CONNECT_LIMIT; fabsf(uvdiff[1]) < STD_UV_CONNECT_LIMIT;

View File

@@ -348,7 +348,7 @@ void gpu_extensions_init(void)
GG.mip_render_workaround = true; GG.mip_render_workaround = true;
} }
/* Intel Ivy Bridge GPU's seems to have buggy cubemap array support. (see T75943) */ /* Intel Ivy Bridge GPU's seems to have buggy cube-map array support. (see T75943) */
if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_WIN, GPU_DRIVER_OFFICIAL) && if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_WIN, GPU_DRIVER_OFFICIAL) &&
(strstr(renderer, "HD Graphics 4000") || strstr(renderer, "HD Graphics 2500"))) { (strstr(renderer, "HD Graphics 4000") || strstr(renderer, "HD Graphics 2500"))) {
GG.glew_arb_texture_cube_map_array_is_supported = false; GG.glew_arb_texture_cube_map_array_is_supported = false;

View File

@@ -969,8 +969,8 @@ void ArmatureImporter::make_shape_keys(bContext *C)
/* insert other shape keys */ /* insert other shape keys */
for (int i = 0; i < morphTargetIds.getCount(); i++) { for (int i = 0; i < morphTargetIds.getCount(); i++) {
/* better to have a separate map of morph objects, /* Better to have a separate map of morph objects,
* This'll do for now since only mesh morphing is imported */ * This will do for now since only mesh morphing is imported. */
Mesh *me = this->mesh_importer->get_mesh_by_geom_uid(morphTargetIds[i]); Mesh *me = this->mesh_importer->get_mesh_by_geom_uid(morphTargetIds[i]);

View File

@@ -902,7 +902,7 @@ static void do_2d_mapping(
float fx, fy, fac1, area[8]; float fx, fy, fac1, area[8];
int ok, proj, areaflag = 0, wrap; int ok, proj, areaflag = 0, wrap;
/* mtex variables localized, only cubemap doesn't cooperate yet... */ /* #MTex variables localized, only cube-map doesn't cooperate yet. */
wrap = mtex->mapping; wrap = mtex->mapping;
tex = mtex->tex; tex = mtex->tex;