Cleanup: spelling in comments

This commit is contained in:
2022-09-29 10:28:39 +10:00
parent d459219307
commit c1548938a4
8 changed files with 12 additions and 13 deletions

View File

@@ -494,7 +494,7 @@ static int customdata_compare(
}
if (layer_count1 != layer_count2) {
/* TODO(@HooglyBoogly): Reenable after tests are updated for material index refactor. */
/* TODO(@HooglyBoogly): Re-enable after tests are updated for material index refactor. */
// return MESHCMP_CDLAYERS_MISMATCH;
}

View File

@@ -4,8 +4,8 @@
/** \file
* \ingroup gpu
*
* PBVH drawing. Embedds GPU meshes inside of PBVH nodes,
* used by mesh sculpt mode.
* PBVH drawing.
* Embeds GPU meshes inside of PBVH nodes, used by mesh sculpt mode.
*/
#include <limits.h>

View File

@@ -2422,7 +2422,7 @@ static void ANIM_OT_channels_clean_empty(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
}
/* ******************* Reenable Disabled Operator ******************* */
/* ******************* Re-enable Disabled Operator ******************* */
static bool animchannels_enable_poll(bContext *C)
{

View File

@@ -195,9 +195,8 @@ static void do_paint_brush_task_cb_ex(void *__restrict userdata,
paint_color, paint_color, wet_mix_color, ss->cache->paint_brush.wet_mix);
blend_color_mix_float(color_buffer->color[vd.i], color_buffer->color[vd.i], paint_color);
/* Final mix over the original color using brush alpha. We apply automaking again
* at this point to avoid washing out non-binary masking modes like cavity masking.
*/
/* Final mix over the original color using brush alpha. We apply auto-making again
* at this point to avoid washing out non-binary masking modes like cavity masking. */
float automasking = SCULPT_automasking_factor_get(ss->cache->automasking, ss, vd.vertex);
mul_v4_v4fl(buffer_color, color_buffer->color[vd.i], brush->alpha * automasking);

View File

@@ -838,7 +838,7 @@ static void graph_blend_write(BlendWriter *writer, SpaceLink *sl)
BLO_write_struct(writer, bDopeSheet, sipo->ads);
}
/* reenable ghost curves */
/* Re-enable ghost curves. */
sipo->runtime.ghost_curves = tmpGhosts;
}

View File

@@ -1983,7 +1983,7 @@ static void node_draw_link_end_marker(const float2 center,
UI_draw_roundbox_corner_set(UI_CNR_ALL);
UI_draw_roundbox_4fv(&rect, true, radius, color);
/* Roundbox disables alpha. Reenable it for node links that are drawn after this one. */
/* Round-box disables alpha. Re-enable it for node links that are drawn after this one. */
GPU_blend(GPU_BLEND_ALPHA);
}

View File

@@ -551,7 +551,7 @@ static bNodeSocket *determine_socket_to_view(bNode &node_to_view)
}
if (last_linked_socket_index == -1) {
/* Returnt he first socket that can be viewed. */
/* Return the first socket that can be viewed. */
for (bNodeSocket *socket : node_to_view.output_sockets()) {
if (socket_can_be_viewed(*socket)) {
return socket;
@@ -932,7 +932,7 @@ static void node_link_exit(bContext &C, wmOperator &op, const bool apply_links)
ED_node_tree_propagate_change(&C, bmain, &ntree);
/* Ensure draglink tooltip is disabled. */
/* Ensure drag-link tool-tip is disabled. */
draw_draglink_tooltip_deactivate(*CTX_wm_region(&C), *nldrag);
ED_workspace_status_text(&C, nullptr);

View File

@@ -2985,7 +2985,7 @@ static void outliner_draw_iconrow_number(const uiFontStyle *fstyle,
number_text,
text_col);
UI_fontstyle_set(fstyle);
GPU_blend(GPU_BLEND_ALPHA); /* Roundbox and text drawing disables. */
GPU_blend(GPU_BLEND_ALPHA); /* Round-box and text drawing disables. */
}
static void outliner_icon_background_colors(float icon_color[4], float icon_border[4])
@@ -3015,7 +3015,7 @@ static void outliner_draw_active_indicator(const float minx,
UI_draw_roundbox_corner_set(UI_CNR_ALL);
UI_draw_roundbox_aa(&rect, true, radius, icon_color);
UI_draw_roundbox_aa(&rect, false, radius, icon_border);
GPU_blend(GPU_BLEND_ALPHA); /* Roundbox disables. */
GPU_blend(GPU_BLEND_ALPHA); /* Round-box disables. */
}
static void outliner_draw_iconrow_doit(uiBlock *block,