Cleanup: spelling (make check_spelling_*)

This commit is contained in:
Campbell Barton
2024-12-11 11:20:00 +11:00
parent e0f6a067c0
commit 560b6e2831
8 changed files with 11 additions and 11 deletions

View File

@@ -484,7 +484,7 @@ def dump_rna_messages(msgs, reports, settings, verbose=False):
def dump_py_messages_from_files(msgs, reports, files, settings):
"""
Dump text inlined in the python files given, e.g. "My Name" in:
layout.prop("someprop", text="My Name")
``layout.prop("someprop", text="My Name")``
"""
import ast

View File

@@ -532,7 +532,7 @@ Slot &Action::slot_add_for_id(const ID &animated_id)
Slot &slot = this->slot_add();
slot.idtype = GS(animated_id.name);
/* Determine the identifier for this slot, prioritising transparent
/* Determine the identifier for this slot, prioritizing transparent
* auto-selection when toggling between Actions. That's why the last-used slot
* identifier is used here, and the ID name only as fallback. */
const AnimData *adt = BKE_animdata_from_id(&animated_id);

View File

@@ -140,7 +140,7 @@ eGPUTextureFormat RenderBuffers::vector_tx_format()
inst_.motion_blur.postfx_enabled()) &&
!inst_.is_viewport();
/* Only RG16F (motion.prev) for the viewport. */
/* Only RG16F (`motion.prev`) for the viewport. */
return do_full_vector_render_pass ? GPU_RGBA16F : GPU_RG16F;
}

View File

@@ -45,8 +45,8 @@ void main()
float coc_near = reduce_max(cocs_near);
float coc_far = reduce_max(cocs_far);
/* now we need to write the near-far fields premultiplied by the coc
* also use bilateral weighting by each coc values to avoid bleeding. */
/* Now we need to write the near-far fields pre-multiplied by the COC
* also use bilateral weighting by each COC values to avoid bleeding. */
vec4 near_weights = step(0.0, cocs_near) * clamp(1.0 - abs(coc_near - cocs_near), 0.0, 1.0);
vec4 far_weights = step(0.0, cocs_far) * clamp(1.0 - abs(coc_far - cocs_far), 0.0, 1.0);

View File

@@ -1470,7 +1470,7 @@ static void icon_draw_size(float x,
Icon *icon = BKE_icon_get(icon_id);
if (icon->obj_type != ICON_DATA_STUDIOLIGHT) {
/* Icon Alpha should not apply to Mapcaps/Studio lighting. #80356. */
/* Icon alpha should not apply to MatCap/Studio lighting. #80356. */
alpha *= btheme->tui.icon_alpha;
}

View File

@@ -113,8 +113,8 @@ class Context {
Batch *polyline_batch_get();
/* When using --debug-gpu, assert that the shader fragments write to all the writtable
* attachments of the bound framebuffer. */
/* When using `--debug-gpu`, assert that the shader fragments write to all the writable
* attachments of the bound frame-buffer. */
void assert_framebuffer_shader_compatibility(Shader *sh)
{
if (!(G.debug & G_DEBUG_GPU)) {
@@ -130,7 +130,7 @@ class Context {
if ((fb_attachments_bits & ~fragment_output_bits) != 0) {
std::string msg;
msg = msg + "Shader (" + sh->name_get() + ") does not write to all framebuffer (" +
msg = msg + "Shader (" + sh->name_get() + ") does not write to all frame-buffer (" +
active_fb->name_get() + ") color attachments";
BLI_assert_msg(false, msg.c_str());
std::cerr << msg << std::endl;

View File

@@ -87,7 +87,7 @@ class FrameBuffer {
bool dirty_state_ = true;
/* Flag specifying the current bind operation should use explicit load-store state. */
bool use_explicit_load_store_ = false;
/** Bitset indicating the color attachments slots in use. */
/** Bit-set indicating the color attachments slots in use. */
uint16_t color_attachments_bits_ = 0;
public:

View File

@@ -44,7 +44,7 @@ class Shader {
public:
/** Uniform & attribute locations for shader. */
ShaderInterface *interface = nullptr;
/** Bitset indicating the framebuffer color attachments that this shader writes to. */
/** Bit-set indicating the frame-buffer color attachments that this shader writes to. */
uint16_t fragment_output_bits = 0;
/**