Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2024-07-25 10:17:42 +10:00
parent 62afbbef9b
commit 2edc2393d2
25 changed files with 32 additions and 29 deletions

View File

@@ -34,7 +34,7 @@ class Denoiser {
* This is checked in debug builds.
* - The device might be MultiDevice.
* - If Denoiser from params is not supported by provided denoise device, then Blender will
fallback on the OIDN CPU denoising and use provided cpu_fallback_device. */
* fallback on the OIDN CPU denoising and use provided cpu_fallback_device. */
static unique_ptr<Denoiser> create(Device *denoise_device,
Device *cpu_fallback_device,
const DenoiseParams &params);

View File

@@ -191,8 +191,8 @@ LightTreeEmitter::LightTreeEmitter(Scene *scene,
const float len_v = len(lamp->get_axisv());
const float len_w = len(lamp->get_dir());
/* As `theta_e` approaches `pi/2`, the behaviour of `atan(tan(theta_e))` can become quite
* unpredicatable as `tan(x)` has an asymptote at `x = pi/2`. To avoid this, we skip the back
/* As `theta_e` approaches `pi/2`, the behavior of `atan(tan(theta_e))` can become quite
* unpredictable as `tan(x)` has an asymptote at `x = pi/2`. To avoid this, we skip the back
* and forward conversion.
* The conversion is required to deal with scaled lights, but near `pi/2` the scaling does
* not make a big difference in the angle, so we can skip the conversion without worrying

View File

@@ -73,7 +73,7 @@ class BufferParams : public Node {
int height = 0;
/* Windows defines which part of the buffers is visible. The part outside of the window is
* considered an "overscan".
* considered an `overscan`.
*
* Window X and Y are relative to the position of the buffer in the full buffer. */
int window_x = 0;

View File

@@ -510,7 +510,7 @@ void GHOST_NDOFManager::updateButton(int button_number, bool press, uint64_t tim
{
GHOST_NDOF_ButtonT button = static_cast<GHOST_NDOF_ButtonT>(button_number);
/* For bistmask devices button maping isn't unified, therefore check the button map. */
/* For bit-mask devices button mapping isn't unified, therefore check the button map. */
if (std::find(bitmask_devices_.begin(), bitmask_devices_.end(), device_type_) !=
bitmask_devices_.end())
{