Cleanup: spelling in comments
This commit is contained in:
@@ -176,7 +176,7 @@ enum {
|
||||
BLENDER_SYSTEM_PYTHON = 54,
|
||||
};
|
||||
|
||||
/* for BKE_appdir_folder_id_version only */
|
||||
/** For #BKE_appdir_folder_id_version only. */
|
||||
enum {
|
||||
BLENDER_RESOURCE_PATH_USER = 0,
|
||||
BLENDER_RESOURCE_PATH_LOCAL = 1,
|
||||
|
||||
@@ -329,7 +329,7 @@ static void swap_old_bmain_data_for_blendfile(ReuseOldBMainData *reuse_data, con
|
||||
|
||||
std::swap(*new_lb, *old_lb);
|
||||
|
||||
/* TODO: Could add per-IDType control over namemaps clearing, if this becomes a performances
|
||||
/* TODO: Could add per-IDType control over name-maps clearing, if this becomes a performances
|
||||
* concern. */
|
||||
BKE_main_namemap_clear(old_bmain);
|
||||
BKE_main_namemap_clear(new_bmain);
|
||||
|
||||
@@ -50,8 +50,8 @@ namespace blender::bke::greasepencil::convert {
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Animation conversion helpers.
|
||||
*
|
||||
* These utils will call given callback over all relavant fcurves (also includes drivers, and
|
||||
* actions linked through the NLA).
|
||||
* These utilities will call given callback over all relevant F-curves
|
||||
* (also includes drivers, and actions linked through the NLA).
|
||||
* \{ */
|
||||
|
||||
static bool legacy_fcurves_process(ListBase &fcurves,
|
||||
|
||||
@@ -597,7 +597,7 @@ static bool main_namemap_validate_and_fix(Main *bmain, const bool do_fix)
|
||||
return is_valid;
|
||||
}
|
||||
|
||||
/* Clear all existing namemaps. */
|
||||
/* Clear all existing name-maps. */
|
||||
BKE_main_namemap_clear(bmain);
|
||||
|
||||
return is_valid;
|
||||
|
||||
@@ -286,7 +286,7 @@ int BLI_hash_md5_stream(FILE *stream, void *resblock)
|
||||
len[1] = 0;
|
||||
|
||||
/* Iterate over full file contents. */
|
||||
while (1) {
|
||||
while (true) {
|
||||
/* We read the file in blocks of BLOCKSIZE bytes.
|
||||
* One call of the computation function processes the whole buffer
|
||||
* so that with the next round of the loop another block can be read.
|
||||
|
||||
@@ -32,7 +32,7 @@ void HueSaturationValueCorrectOperation::execute_pixel_sampled(float output[4],
|
||||
|
||||
input_program_->read_sampled(hsv, x, y, sampler);
|
||||
|
||||
/* We parametrize the curve using the hue value. */
|
||||
/* We parameterize the curve using the hue value. */
|
||||
const float parameter = hsv[0];
|
||||
|
||||
/* adjust hue, scaling returned default 0.5 up to 1 */
|
||||
@@ -70,7 +70,7 @@ void HueSaturationValueCorrectOperation::update_memory_buffer_partial(MemoryBuff
|
||||
for (BuffersIterator<float> it = output->iterate_with(inputs, area); !it.is_end(); ++it) {
|
||||
copy_v4_v4(hsv, it.in(0));
|
||||
|
||||
/* We parametrize the curve using the hue value. */
|
||||
/* We parameterize the curve using the hue value. */
|
||||
const float parameter = hsv[0];
|
||||
|
||||
/* Adjust hue, scaling returned default 0.5 up to 1. */
|
||||
|
||||
@@ -27,7 +27,7 @@ float roughness_from_relative_mip(float prev_mip_roughness, float curr_mip_rough
|
||||
float m_prev = pow(prev_mip_roughness, exponent);
|
||||
float m_curr = pow(curr_mip_roughness, exponent);
|
||||
/* Given that spherical gaussians are very close to regular gaussian in 1D,
|
||||
* we reuse the same rule for successive convolution (i.e: G`(x,a) X G(x,b) = G(x,a+b)`).
|
||||
* we reuse the same rule for successive convolution (i.e: `G(x,a) X G(x,b) = G(x,a+b)`).
|
||||
* While this isn't technically correct, this still works quite well in practice. */
|
||||
float m_target = m_curr - m_prev;
|
||||
/* From GGX roughness input to linear roughness. */
|
||||
|
||||
@@ -1112,7 +1112,7 @@ typedef enum IDRecalcFlag {
|
||||
* have to be copied on every update. */
|
||||
ID_RECALC_PARAMETERS = (1 << 21),
|
||||
|
||||
/* Input has changed and datablock is to be reload from disk.
|
||||
/* Input has changed and data-block is to be reload from disk.
|
||||
* Applies to movie clips to inform that copy-on-written version is to be refreshed for the new
|
||||
* input file or for color space changes. */
|
||||
ID_RECALC_SOURCE = (1 << 23),
|
||||
|
||||
Reference in New Issue
Block a user