Cleanup: spelling
This commit is contained in:
@@ -4162,7 +4162,7 @@ static void ui_def_but_rna__menu(bContext *UNUSED(C), uiLayout *layout, void *bu
|
||||
RNA_property_enum_items_gettexted(
|
||||
block->evil_C, &but->rnapoin, but->rnaprop, &item_array, NULL, &free);
|
||||
|
||||
/* we dont want nested rows, cols in menus */
|
||||
/* We don't want nested rows, cols in menus. */
|
||||
UI_block_layout_set_current(block, layout);
|
||||
|
||||
int totitems = 0;
|
||||
|
||||
@@ -2097,7 +2097,7 @@ static void ui_apply_but(
|
||||
}
|
||||
}
|
||||
if (data->select_others.elems_len == 0) {
|
||||
/* dont check again */
|
||||
/* Don't check again. */
|
||||
data->select_others.elems_len = -1;
|
||||
}
|
||||
#endif
|
||||
@@ -4894,7 +4894,7 @@ static bool ui_numedit_but_NUM(uiButNumber *number_but,
|
||||
else {
|
||||
/* only scale large int buttons */
|
||||
non_linear_range_limit = 129.0f;
|
||||
/* larger for ints, we dont need to fine tune them */
|
||||
/* Larger for ints, we don't need to fine tune them. */
|
||||
non_linear_pixel_map = 250.0f;
|
||||
|
||||
/* prevent large ranges from getting too out of control */
|
||||
@@ -7779,7 +7779,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
|
||||
else if (data->multi_data.init == BUTTON_MULTI_INIT_SETUP) {
|
||||
/* --> (BUTTON_MULTI_INIT_ENABLE) */
|
||||
const float margin_x = DRAG_MULTINUM_THRESHOLD_DRAG_X / sqrtf(block->aspect);
|
||||
/* check if we're dont setting buttons */
|
||||
/* Check if we're don't setting buttons. */
|
||||
if ((data->str &&
|
||||
ELEM(data->state, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_NUM_EDITING)) ||
|
||||
((abs(data->multi_data.drag_lock_x - event->x) > margin_x) &&
|
||||
|
||||
@@ -813,7 +813,7 @@ static void ui_item_enum_expand_exec(uiLayout *layout,
|
||||
RNA_property_enum_items_gettexted(block->evil_C, ptr, prop, &item_array, NULL, &free);
|
||||
}
|
||||
|
||||
/* we dont want nested rows, cols in menus */
|
||||
/* We don't want nested rows, cols in menus. */
|
||||
uiLayout *layout_radial = NULL;
|
||||
if (radial) {
|
||||
if (layout->root->layout == layout) {
|
||||
|
||||
@@ -240,7 +240,7 @@ static void ui_tooltip_region_draw_cb(const bContext *UNUSED(C), ARegion *region
|
||||
fstyle_mono.uifont_id = blf_mono_font;
|
||||
|
||||
UI_fontstyle_set(&fstyle_mono);
|
||||
/* XXX, needed because we dont have mono in 'U.uifonts' */
|
||||
/* XXX, needed because we don't have mono in 'U.uifonts' */
|
||||
BLF_size(fstyle_mono.uifont_id, fstyle_mono.points * U.pixelsize, U.dpi);
|
||||
rgb_float_to_uchar(drawcol, tip_colors[field->format.color_id]);
|
||||
UI_fontstyle_draw(&fstyle_mono, &bbox, field->text, drawcol, &fs_params);
|
||||
|
||||
@@ -2083,11 +2083,11 @@ void uiTemplateConstraints(uiLayout *UNUSED(layout), bContext *C, bool use_bone_
|
||||
UI_panels_free_instanced(C, region);
|
||||
bConstraint *con = (constraints == NULL) ? NULL : constraints->first;
|
||||
for (int i = 0; con; i++, con = con->next) {
|
||||
/* Dont show invalid/legacy constraints. */
|
||||
/* Don't show invalid/legacy constraints. */
|
||||
if (con->type == CONSTRAINT_TYPE_NULL) {
|
||||
continue;
|
||||
}
|
||||
/* Dont show temporary constraints (AutoIK and targetless IK constraints). */
|
||||
/* Don't show temporary constraints (AutoIK and target-less IK constraints). */
|
||||
if (con->type == CONSTRAINT_TYPE_KINEMATIC) {
|
||||
bKinematicConstraint *data = con->data;
|
||||
if (data->flag & CONSTRAINT_IK_TEMP) {
|
||||
@@ -2116,11 +2116,11 @@ void uiTemplateConstraints(uiLayout *UNUSED(layout), bContext *C, bool use_bone_
|
||||
/* Assuming there's only one group of instanced panels, update the custom data pointers. */
|
||||
Panel *panel = region->panels.first;
|
||||
LISTBASE_FOREACH (bConstraint *, con, constraints) {
|
||||
/* Dont show invalid/legacy constraints. */
|
||||
/* Don't show invalid/legacy constraints. */
|
||||
if (con->type == CONSTRAINT_TYPE_NULL) {
|
||||
continue;
|
||||
}
|
||||
/* Dont show temporary constraints (AutoIK and targetless IK constraints). */
|
||||
/* Don't show temporary constraints (AutoIK and target-less IK constraints). */
|
||||
if (con->type == CONSTRAINT_TYPE_KINEMATIC) {
|
||||
bKinematicConstraint *data = con->data;
|
||||
if (data->flag & CONSTRAINT_IK_TEMP) {
|
||||
|
||||
Reference in New Issue
Block a user