Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/curve/editcurve_paint.c2
-rw-r--r--source/blender/editors/include/ED_transverts.h9
-rw-r--r--source/blender/editors/interface/interface.c2
-rw-r--r--source/blender/editors/interface/interface_handlers.c6
-rw-r--r--source/blender/editors/interface/interface_layout.c2
-rw-r--r--source/blender/editors/interface/interface_region_tooltip.c2
-rw-r--r--source/blender/editors/interface/interface_templates.c8
-rw-r--r--source/blender/editors/mask/mask_ops.c4
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c2
-rw-r--r--source/blender/editors/mesh/editmesh_rip.c2
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c8
-rw-r--r--source/blender/editors/object/object_bake_api.c6
-rw-r--r--source/blender/editors/physics/particle_edit.c2
-rw-r--r--source/blender/editors/render/render_internal.c6
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c2
-rw-r--r--source/blender/editors/space_buttons/buttons_ops.c2
-rw-r--r--source/blender/editors/space_file/file_ops.c2
-rw-r--r--source/blender/editors/space_file/filesel.c2
-rw-r--r--source/blender/editors/space_text/text_draw.c8
-rw-r--r--source/blender/editors/space_view3d/view3d_iterators.c8
-rw-r--r--source/blender/editors/space_view3d/view3d_utils.c2
-rw-r--r--source/blender/editors/transform/transform_convert_mask.c2
-rw-r--r--source/blender/editors/transform/transform_convert_node.c2
-rw-r--r--source/blender/editors/transform/transform_mode_bend.c2
-rw-r--r--source/blender/editors/transform/transform_mode_edge_slide.c2
-rw-r--r--source/blender/editors/transform/transform_mode_timetranslate.c2
26 files changed, 52 insertions, 45 deletions
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c
index 889041daacf..48a36ff276d 100644
--- a/source/blender/editors/curve/editcurve_paint.c
+++ b/source/blender/editors/curve/editcurve_paint.c
@@ -650,7 +650,7 @@ static void curve_draw_exec_precalc(wmOperator *op)
prop = RNA_struct_find_property(op->ptr, "error_threshold");
if (!RNA_property_is_set(op->ptr, prop)) {
- /* error isnt set so we'll have to calculate it from the pixel values */
+ /* Error isn't set so we'll have to calculate it from the pixel values. */
BLI_mempool_iter iter;
const struct StrokeElem *selem, *selem_prev;
diff --git a/source/blender/editors/include/ED_transverts.h b/source/blender/editors/include/ED_transverts.h
index bff31149b75..28955da6ef1 100644
--- a/source/blender/editors/include/ED_transverts.h
+++ b/source/blender/editors/include/ED_transverts.h
@@ -50,9 +50,12 @@ bool ED_transverts_poll(struct bContext *C);
/* currently only used for bmesh index values */
enum {
- TM_INDEX_ON = 1, /* tag to make trans verts */
- TM_INDEX_OFF = 0, /* don't make verts */
- TM_INDEX_SKIP = -1, /* dont make verts (when the index values point to trans-verts) */
+ /** Tag to make trans verts. */
+ TM_INDEX_ON = 1,
+ /** Don't make verts. */
+ TM_INDEX_OFF = 0,
+ /** Don't make verts (when the index values point to trans-verts). */
+ TM_INDEX_SKIP = -1,
};
/* mode flags: */
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index c7f5385eac3..fbd7dcd61f2 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -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;
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 81da54ade9e..ee5c3f53f5e 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -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) &&
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 8f90dc7f801..4430d00f2e3 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -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) {
diff --git a/source/blender/editors/interface/interface_region_tooltip.c b/source/blender/editors/interface/interface_region_tooltip.c
index 050a14cf574..244cf7622e0 100644
--- a/source/blender/editors/interface/interface_region_tooltip.c
+++ b/source/blender/editors/interface/interface_region_tooltip.c
@@ -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);
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 08895564a26..42b6e771fe4 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -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) {
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 14f81520b9a..1a6ac8597ae 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -1475,8 +1475,8 @@ static int delete_exec(bContext *C, wmOperator *UNUSED(op))
spline = next_spline;
}
- /* not essential but confuses users when there are keys with no data!
- * assume if they delete all data from the layer they also dont care about keys */
+ /* Not essential but confuses users when there are keys with no data!
+ * Assume if they delete all data from the layer they also don't care about keys. */
if (BLI_listbase_is_empty(&mask_layer->splines)) {
BKE_mask_layer_free_shapes(mask_layer);
}
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index b5ec3f388a0..df0ca6e3cae 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -2548,7 +2548,7 @@ static void knifetool_finish_ex(KnifeTool_OpData *kcd)
EDBM_mesh_normals_update(kcd->em);
EDBM_update_generic(kcd->ob->data, true, true);
- /* re-tessellating makes this invalid, dont use again by accident */
+ /* Re-tessellating makes this invalid, don't use again by accident. */
knifetool_free_bmbvh(kcd);
}
static void knifetool_finish(wmOperator *op)
diff --git a/source/blender/editors/mesh/editmesh_rip.c b/source/blender/editors/mesh/editmesh_rip.c
index 33797573f2b..222d44f85d8 100644
--- a/source/blender/editors/mesh/editmesh_rip.c
+++ b/source/blender/editors/mesh/editmesh_rip.c
@@ -386,7 +386,7 @@ static void edbm_ripsel_deselect_helper(BMesh *bm,
* use for rebuilding face-fill
*
* \note the method currently used fails for edges with 3+ face users and gives
- * nasty holes in the mesh, there isnt a good way of knowing ahead of time
+ * nasty holes in the mesh, there isn't a good way of knowing ahead of time
* which loops will be split apart (its possible to figure out but quite involved).
* So for now this is a known limitation of current rip-fill option.
*/
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 8bb557509e0..ade21f58232 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -853,7 +853,7 @@ static BMElem *edbm_add_edge_face_exec__tricky_extend_sel(BMesh *bm)
}
static void edbm_add_edge_face_exec__tricky_finalize_sel(BMesh *bm, BMElem *ele_desel, BMFace *f)
{
- /* now we need to find the edge that isnt connected to this element */
+ /* Now we need to find the edge that isn't connected to this element. */
BM_select_history_clear(bm);
/* Notes on hidden geometry:
@@ -896,7 +896,7 @@ static void edbm_add_edge_face_exec__tricky_finalize_sel(BMesh *bm, BMElem *ele_
static int edbm_add_edge_face_exec(bContext *C, wmOperator *op)
{
- /* when this is used to dissolve we could avoid this, but checking isnt too slow */
+ /* When this is used to dissolve we could avoid this, but checking isn't too slow. */
bool changed_multi = false;
ViewLayer *view_layer = CTX_data_view_layer(C);
uint objects_len = 0;
@@ -4815,11 +4815,11 @@ static bool edbm_fill_grid_prepare(BMesh *bm, int offset, int *span_p, const boo
if (span_calc) {
/* calculate the span by finding the next corner in 'verts'
- * we dont know what defines a corner exactly so find the 4 verts
+ * we don't know what defines a corner exactly so find the 4 verts
* in the loop with the greatest angle.
* Tag them and use the first tagged vertex to calculate the span.
*
- * note: we may have already checked 'edbm_fill_grid_vert_tag_angle()' on each
+ * NOTE: we may have already checked 'edbm_fill_grid_vert_tag_angle()' on each
* vert, but advantage of de-duplicating is minimal. */
struct SortPtrByFloat *ele_sort = MEM_mallocN(sizeof(*ele_sort) * verts_len, __func__);
LinkData *v_link;
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index d64769567f7..f651f5bc3fd 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -156,8 +156,10 @@ static int bake_modal(bContext *C, wmOperator *UNUSED(op), const wmEvent *event)
return OPERATOR_PASS_THROUGH;
}
-/* for exec() when there is no render job
- * note: this wont check for the escape key being pressed, but doing so isnt threadsafe */
+/**
+ * for exec() when there is no render job
+ * note: this wont check for the escape key being pressed, but doing so isn't thread-safe.
+ */
static int bake_break(void *UNUSED(rjv))
{
if (G.is_break) {
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 1ee17d0e4b0..0ec8238f741 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4731,7 +4731,7 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
(dx != 0 || dy != 0)) ||
bedit->first) {
PEData data = bedit->data;
- data.context = C; /* TODO(mai): why isnt this set in bedit->data? */
+ data.context = C; /* TODO(mai): why isn't this set in bedit->data? */
view3d_operator_needs_opengl(C);
selected = (short)count_selected_keys(scene, edit);
diff --git a/source/blender/editors/render/render_internal.c b/source/blender/editors/render/render_internal.c
index 1f59e361526..0b5a8db0115 100644
--- a/source/blender/editors/render/render_internal.c
+++ b/source/blender/editors/render/render_internal.c
@@ -788,8 +788,10 @@ static int render_breakjob(void *rjv)
return 0;
}
-/* for exec() when there is no render job
- * note: this wont check for the escape key being pressed, but doing so isnt threadsafe */
+/**
+ * For exec() when there is no render job
+ * note: this wont check for the escape key being pressed, but doing so isn't thread-safe.
+ */
static int render_break(void *UNUSED(rjv))
{
if (G.is_break) {
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index f7c0f7718bb..530689ce049 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -1733,7 +1733,7 @@ static float project_paint_uvpixel_mask(const ProjPaintState *ps,
ps->mvert_eval[lt_vtri[1]].co,
ps->mvert_eval[lt_vtri[2]].co);
#else
- /* don't use because some modifiers dont have normal data (subsurf for eg) */
+ /* Don't use because some modifiers don't have normal data (subsurf for eg). */
copy_v3_v3(no, (float *)ps->dm->getTessFaceData(ps->dm, tri_index, CD_NORMAL));
#endif
}
diff --git a/source/blender/editors/space_buttons/buttons_ops.c b/source/blender/editors/space_buttons/buttons_ops.c
index f135c1ee726..c141789f171 100644
--- a/source/blender/editors/space_buttons/buttons_ops.c
+++ b/source/blender/editors/space_buttons/buttons_ops.c
@@ -217,7 +217,7 @@ static int file_browse_exec(bContext *C, wmOperator *op)
BLI_path_abs(path, id ? ID_BLEND_PATH(bmain, id) : BKE_main_blendfile_path(bmain));
if (BLI_is_dir(path)) {
- /* Do this first so '//' isnt converted to '//\' on windows. */
+ /* Do this first so '//' isn't converted to '//\' on windows. */
BLI_path_slash_ensure(path);
if (is_relative) {
BLI_strncpy(path, str, FILE_MAX);
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index bd6b15bdf74..856bd5b1bc3 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -452,7 +452,7 @@ static int file_box_select_modal(bContext *C, wmOperator *op, const wmEvent *eve
for (idx = sel.last; idx >= 0; idx--) {
const FileDirEntry *file = filelist_file(sfile->files, idx);
- /* dont highlight readonly file (".." or ".") on box select */
+ /* Don't highlight read-only file (".." or ".") on box select. */
if (FILENAME_IS_CURRPAR(file->relpath)) {
filelist_entry_select_set(
sfile->files, file, FILE_SEL_REMOVE, FILE_SEL_HIGHLIGHTED, CHECK_ALL);
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c
index 7015ca970a3..038b9c11bca 100644
--- a/source/blender/editors/space_file/filesel.c
+++ b/source/blender/editors/space_file/filesel.c
@@ -639,7 +639,7 @@ int ED_fileselect_layout_numfiles(FileLayout *layout, ARegion *region)
*
* - *_item: size of each (row|col), (including padding)
* - *_view: (x|y) size of the view.
- * - *_over: extra pixels, to take into account, when the fit isnt exact
+ * - *_over: extra pixels, to take into account, when the fit isn't exact
* (needed since you may see the end of the previous column and the beginning of the next).
*
* Could be more clever and take scrolling into account,
diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c
index 883556948e2..8b8034124d9 100644
--- a/source/blender/editors/space_text/text_draw.c
+++ b/source/blender/editors/space_text/text_draw.c
@@ -923,12 +923,12 @@ static void calc_text_rcts(SpaceText *st, ARegion *region, rcti *scroll, rcti *b
hlstart = (lhlstart * pix_available) / ltexth;
hlend = (lhlend * pix_available) / ltexth;
- /* the scrollbar is non-linear sized */
+ /* The scrollbar is non-linear sized. */
if (pix_bardiff > 0) {
/* the start of the highlight is in the current viewport */
if (st->runtime.viewlines && lhlstart >= st->top &&
lhlstart <= st->top + st->runtime.viewlines) {
- /* speed the progresion of the start of the highlight through the scrollbar */
+ /* Speed the progression of the start of the highlight through the scrollbar. */
hlstart = (((pix_available - pix_bardiff) * lhlstart) / ltexth) +
(pix_bardiff * (lhlstart - st->top) / st->runtime.viewlines);
}
@@ -949,7 +949,7 @@ static void calc_text_rcts(SpaceText *st, ARegion *region, rcti *scroll, rcti *b
/* the end of the highlight is in the current viewport */
if (st->runtime.viewlines && lhlend >= st->top &&
lhlend <= st->top + st->runtime.viewlines) {
- /* speed the progresion of the end of the highlight through the scrollbar */
+ /* Speed the progression of the end of the highlight through the scrollbar. */
hlend = (((pix_available - pix_bardiff) * lhlend) / ltexth) +
(pix_bardiff * (lhlend - st->top) / st->runtime.viewlines);
}
@@ -1433,7 +1433,7 @@ static void draw_brackets(const SpaceText *st, const TextDrawContext *tdc, ARegi
find = -b;
stack = 0;
- /* Don't highlight backets if syntax HL is off or bracket in string or comment. */
+ /* Don't highlight brackets if syntax HL is off or bracket in string or comment. */
if (!linep->format || linep->format[fc] == FMT_TYPE_STRING ||
linep->format[fc] == FMT_TYPE_COMMENT) {
return;
diff --git a/source/blender/editors/space_view3d/view3d_iterators.c b/source/blender/editors/space_view3d/view3d_iterators.c
index 91e629147f4..bdb2c3874db 100644
--- a/source/blender/editors/space_view3d/view3d_iterators.c
+++ b/source/blender/editors/space_view3d/view3d_iterators.c
@@ -571,7 +571,7 @@ void armature_foreachScreenBone(struct ViewContext *vc,
}
else {
screen_co_a[0] = IS_CLIPPED; /* weak */
- /* screen_co_a[1]: intentionally dont set this so we get errors on misuse */
+ /* screen_co_a[1]: intentionally don't set this so we get errors on misuse */
}
/* project tail location to screenspace */
@@ -581,7 +581,7 @@ void armature_foreachScreenBone(struct ViewContext *vc,
}
else {
screen_co_b[0] = IS_CLIPPED; /* weak */
- /* screen_co_b[1]: intentionally dont set this so we get errors on misuse */
+ /* screen_co_b[1]: intentionally don't set this so we get errors on misuse */
}
if (points_proj_tot) { /* at least one point's projection worked */
@@ -623,7 +623,7 @@ void pose_foreachScreenBone(struct ViewContext *vc,
}
else {
screen_co_a[0] = IS_CLIPPED; /* weak */
- /* screen_co_a[1]: intentionally dont set this so we get errors on misuse */
+ /* screen_co_a[1]: intentionally don't set this so we get errors on misuse */
}
/* project tail location to screenspace */
@@ -633,7 +633,7 @@ void pose_foreachScreenBone(struct ViewContext *vc,
}
else {
screen_co_b[0] = IS_CLIPPED; /* weak */
- /* screen_co_b[1]: intentionally dont set this so we get errors on misuse */
+ /* screen_co_b[1]: intentionally don't set this so we get errors on misuse */
}
if (points_proj_tot) { /* at least one point's projection worked */
diff --git a/source/blender/editors/space_view3d/view3d_utils.c b/source/blender/editors/space_view3d/view3d_utils.c
index 3ef428cfbaf..e3acda9bffb 100644
--- a/source/blender/editors/space_view3d/view3d_utils.c
+++ b/source/blender/editors/space_view3d/view3d_utils.c
@@ -228,7 +228,7 @@ void ED_view3d_polygon_offset(const RegionView3D *rv3d, const float dist)
float viewdist = rv3d->dist;
- /* special exception for ortho camera (viewdist isnt used for perspective cameras) */
+ /* Special exception for orthographic camera (`viewdist` isn't used for perspective cameras). */
if (dist != 0.0f) {
if (rv3d->persp == RV3D_CAMOB) {
if (rv3d->is_persp == false) {
diff --git a/source/blender/editors/transform/transform_convert_mask.c b/source/blender/editors/transform/transform_convert_mask.c
index d60d34d2c5d..45dc6df4fde 100644
--- a/source/blender/editors/transform/transform_convert_mask.c
+++ b/source/blender/editors/transform/transform_convert_mask.c
@@ -480,7 +480,7 @@ void special_aftertrans_update__mask(bContext *C, TransInfo *t)
}
}
- /* TODO - dont key all masks... */
+ /* TODO: don't key all masks. */
if (IS_AUTOKEY_ON(t->scene)) {
Scene *scene = t->scene;
diff --git a/source/blender/editors/transform/transform_convert_node.c b/source/blender/editors/transform/transform_convert_node.c
index 506e8a2bd9b..12c4d0816ae 100644
--- a/source/blender/editors/transform/transform_convert_node.c
+++ b/source/blender/editors/transform/transform_convert_node.c
@@ -115,7 +115,7 @@ void createTransNodeData(TransInfo *t)
return;
}
- /* nodes dont support PET and probably never will */
+ /* Nodes don't support PET and probably never will. */
t->flag &= ~T_PROP_EDIT_ALL;
/* set transform flags on nodes */
diff --git a/source/blender/editors/transform/transform_mode_bend.c b/source/blender/editors/transform/transform_mode_bend.c
index 038f7d48c66..b3b1860f9ec 100644
--- a/source/blender/editors/transform/transform_mode_bend.c
+++ b/source/blender/editors/transform/transform_mode_bend.c
@@ -97,7 +97,7 @@ static void Bend(TransInfo *t, const int UNUSED(mval[2]))
snapGrid(t, angle_rad);
#else
/* hrmf, snapping radius is using 'angle' steps, need to convert to something else
- * this isnt essential but nicer to give reasonable snapping values for radius */
+ * this isn't essential but nicer to give reasonable snapping values for radius. */
if (t->tsnap.mode & SCE_SNAP_MODE_INCREMENT) {
const float radius_snap = 0.1f;
const float snap_hack = (t->snap[0] * data->warp_init_dist) / radius_snap;
diff --git a/source/blender/editors/transform/transform_mode_edge_slide.c b/source/blender/editors/transform/transform_mode_edge_slide.c
index dff9ded6b29..16c1c05a6f8 100644
--- a/source/blender/editors/transform/transform_mode_edge_slide.c
+++ b/source/blender/editors/transform/transform_mode_edge_slide.c
@@ -944,7 +944,7 @@ static EdgeSlideData *createEdgeSlideVerts_single_side(TransInfo *t, TransDataCo
/* over alloc */
sv_array = MEM_callocN(sizeof(TransDataEdgeSlideVert) * bm->totvertsel, "sv_array");
- /* same loop for all loops, weak but we dont connect loops in this case */
+ /* Same loop for all loops, weak but we don't connect loops in this case. */
loop_nr = 1;
sv_table = MEM_mallocN(sizeof(*sv_table) * bm->totvert, __func__);
diff --git a/source/blender/editors/transform/transform_mode_timetranslate.c b/source/blender/editors/transform/transform_mode_timetranslate.c
index adebc19c2b9..5ad6d04b4de 100644
--- a/source/blender/editors/transform/transform_mode_timetranslate.c
+++ b/source/blender/editors/transform/transform_mode_timetranslate.c
@@ -97,7 +97,7 @@ static void applyTimeTranslateValue(TransInfo *t, const float deltax)
/* It is assumed that td->extra is a pointer to the AnimData,
* whose active action is where this keyframe comes from.
* (this is only valid when not in NLA)
- * (also: masks and gpencil dont have animadata)
+ * (also: masks and gpencil don't have animadata)
*/
AnimData *adt = (t->spacetype != SPACE_NLA) ? td->extra : NULL;