Cleanup: spelling

This commit is contained in:
Campbell Barton 2020-09-19 14:18:05 +10:00
parent 8ca698427f
commit a78130c610
7 changed files with 13 additions and 13 deletions

View File

@ -1402,7 +1402,7 @@ static NlaEvalChannel *nlaevalchan_verify(PointerRNA *ptr, NlaEvalData *nlaeval,
/* accumulate the old and new values of a channel according to mode and influence */
static float nla_blend_value(int blendmode, float old_value, float value, float inf)
{
/* optimisation: no need to try applying if there is no influence */
/* Optimization: no need to try applying if there is no influence. */
if (IS_EQF(inf, 0.0f)) {
return old_value;
}
@ -1443,7 +1443,7 @@ static float nla_blend_value(int blendmode, float old_value, float value, float
static float nla_combine_value(
int mix_mode, float base_value, float old_value, float value, float inf)
{
/* optimisation: no need to try applying if there is no influence */
/* Optimization: no need to try applying if there is no influence. */
if (IS_EQF(inf, 0.0f)) {
return old_value;
}

View File

@ -754,8 +754,8 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
/* Unify symmetry as a mesh property. */
if (!DNA_struct_elem_find(fd->filesdna, "Mesh", "char", "symmetry")) {
LISTBASE_FOREACH (Mesh *, mesh, &bmain->meshes) {
/* The previous flags used to store mesh symmery in edit mode match the new ones that are
* used in mesh->symmery. */
/* The previous flags used to store mesh symmetry in edit-mode match the new ones that are
* used in #Mesh.symmetry. */
mesh->symmetry = mesh->editflag & (ME_SYMMETRY_X | ME_SYMMETRY_Y | ME_SYMMETRY_Z);
}
}

View File

@ -113,7 +113,7 @@ static void planar_pool_ensure_alloc(EEVEE_Data *vedata, int num_planar_ref)
{
EEVEE_TextureList *txl = vedata->txl;
/* XXX TODO OPTIMISATION : This is a complete waist of texture memory.
/* XXX TODO OPTIMIZATION: This is a complete waist of texture memory.
* Instead of allocating each planar probe for each viewport,
* only alloc them once using the biggest viewport resolution. */
const float *viewport_size = DRW_viewport_size_get();

View File

@ -156,7 +156,7 @@ void workbench_dof_engine_init(WORKBENCH_Data *vedata)
const float *full_size = DRW_viewport_size_get();
const int size[2] = {max_ii(1, (int)full_size[0] / 2), max_ii(1, (int)full_size[1] / 2)};
#if 0 /* TODO(fclem) finish COC min_max optimisation */
#if 0 /* TODO(fclem) finish COC min_max optimization */
/* NOTE: We Ceil here in order to not miss any edge texel if using a NPO2 texture. */
int shrink_h_size[2] = {ceilf(size[0] / 8.0f), size[1]};
int shrink_w_size[2] = {shrink_h_size[0], ceilf(size[1] / 8.0f)};
@ -168,7 +168,7 @@ void workbench_dof_engine_init(WORKBENCH_Data *vedata)
&txl->coc_halfres_tx, size[0], size[1], GPU_RG8, DRW_TEX_FILTER | DRW_TEX_MIPMAP);
wpd->dof_blur_tx = DRW_texture_pool_query_2d(
size[0], size[1], GPU_RGBA16F, &draw_engine_workbench);
#if 0 /* TODO(fclem) finish COC min_max optimisation */
#if 0 /* TODO(fclem) finish COC min_max optimization. */
wpd->coc_temp_tx = DRW_texture_pool_query_2d(
shrink_h_size[0], shrink_h_size[1], GPU_RG8, &draw_engine_workbench);
wpd->coc_tiles_tx[0] = DRW_texture_pool_query_2d(
@ -183,7 +183,7 @@ void workbench_dof_engine_init(WORKBENCH_Data *vedata)
GPU_ATTACHMENT_TEXTURE(txl->dof_source_tx),
GPU_ATTACHMENT_TEXTURE(txl->coc_halfres_tx),
});
#if 0 /* TODO(fclem) finish COC min_max optimisation */
#if 0 /* TODO(fclem) finish COC min_max optimization. */
GPU_framebuffer_ensure_config(&fbl->dof_coc_tile_h_fb,
{
GPU_ATTACHMENT_NONE,

View File

@ -48,11 +48,11 @@ class VertBuf {
uchar *data = NULL;
protected:
/** Usage hint for GL optimisation. */
/** Usage hint for GL optimization. */
GPUUsageType usage_ = GPU_USAGE_STATIC;
private:
/** This counter will only avoid freeing the GPUVertBuf, not the data. */
/** This counter will only avoid freeing the #GPUVertBuf, not the data. */
int handle_refcount_ = 1;
public:
@ -119,4 +119,4 @@ static inline const VertBuf *unwrap(const GPUVertBuf *vert)
return reinterpret_cast<const VertBuf *>(vert);
}
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -74,7 +74,7 @@ static int gpu_shader_valtorgb(GPUMaterial *mat,
float *array, layer;
int size;
/* Common / easy case optimisation. */
/* Common / easy case optimization. */
if ((coba->tot <= 2) && (coba->color_mode == COLBAND_BLEND_RGB)) {
float mul_bias[2];
switch (coba->ipotype) {

View File

@ -166,7 +166,7 @@ void bpy_context_clear(bContext *UNUSED(C), const PyGILState_STATE *gilstate)
}
/**
* Use for `CTX_*_set(..)` funcitons need to set values which are later read back as expected.
* Use for `CTX_*_set(..)` functions need to set values which are later read back as expected.
* In this case we don't want the Python context to override the values as it causes problems
* see T66256.
*