From 5b59be81bacc346e68c4d656e81defe9e34ea54c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Jan 2024 12:44:56 +1100 Subject: [PATCH] Cleanup: spelling in comments --- intern/cycles/blender/util.h | 2 +- source/blender/blenkernel/BKE_idtype.hh | 2 +- source/blender/editors/interface/interface_panel.cc | 2 +- source/blender/editors/transform/transform.cc | 8 +++++--- source/blender/makesdna/DNA_userdef_types.h | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/intern/cycles/blender/util.h b/intern/cycles/blender/util.h index 7ced0d48136..32155470ff7 100644 --- a/intern/cycles/blender/util.h +++ b/intern/cycles/blender/util.h @@ -564,7 +564,7 @@ static inline uint object_motion_steps(BL::Object &b_parent, int steps = max(1, get_int(cobject, "motion_steps")); /* Also check parent object, so motion blur and steps can be - * controlled by dupligroup duplicator for linked groups. */ + * controlled by dupli-group duplicator for linked groups. */ if (b_parent.ptr.data != b_ob.ptr.data) { PointerRNA parent_cobject = RNA_pointer_get(&b_parent.ptr, "cycles"); use_motion &= get_boolean(parent_cobject, "use_motion_blur"); diff --git a/source/blender/blenkernel/BKE_idtype.hh b/source/blender/blenkernel/BKE_idtype.hh index 12e841126cf..79646edea57 100644 --- a/source/blender/blenkernel/BKE_idtype.hh +++ b/source/blender/blenkernel/BKE_idtype.hh @@ -121,7 +121,7 @@ struct IDTypeInfo { /** The user visible name for this data-block, also used as default name for a new data-block. */ const char *name; - /** Plural version of the user-visble name. */ + /** Plural version of the user-visible name. */ const char *name_plural; /** Translation context to use for UI messages related to that type of data-block. */ const char *translation_context; diff --git a/source/blender/editors/interface/interface_panel.cc b/source/blender/editors/interface/interface_panel.cc index 611482defa6..74a3a0ba9a0 100644 --- a/source/blender/editors/interface/interface_panel.cc +++ b/source/blender/editors/interface/interface_panel.cc @@ -2455,7 +2455,7 @@ int ui_handler_panel_region(bContext *C, continue; } /* We can't expand or collapse panels without headers, they would disappear. Layout panels can - * be expanded and collpased though. */ + * be expanded and collapsed though. */ const bool has_panel_header = !(panel->type->flag & PANEL_TYPE_NO_HEADER); int mx = event->xy[0]; diff --git a/source/blender/editors/transform/transform.cc b/source/blender/editors/transform/transform.cc index 593771f8f7e..5587c7ec491 100644 --- a/source/blender/editors/transform/transform.cc +++ b/source/blender/editors/transform/transform.cc @@ -528,7 +528,7 @@ static void viewRedrawPost(bContext *C, TransInfo *t) ED_area_status_text(t->area, nullptr); if (t->spacetype == SPACE_VIEW3D) { - /* if autokeying is enabled, send notifiers that keyframes were added */ + /* If auto-keying is enabled, send notifiers that keyframes were added. */ if (blender::animrig::is_autokey_on(t->scene)) { WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, nullptr); } @@ -1504,8 +1504,10 @@ static void drawTransformView(const bContext * /*C*/, ARegion *region, void *arg } } -/* just draw a little warning message in the top-right corner of the viewport - * to warn that autokeying is enabled */ +/** + * Just draw a little warning message in the top-right corner of the viewport + * to warn that auto-keying is enabled. + */ static void drawAutoKeyWarning(TransInfo *t, ARegion *region) { const char *printable = IFACE_("Auto Keying On"); diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index d4767b37ca6..65d910e139b 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -1295,7 +1295,7 @@ typedef enum eKeying_Flag { KEYING_FLAG_XYZ2RGB = (1 << 3), KEYING_FLAG_CYCLEAWARE = (1 << 8), - /* Autokey options. */ + /* Auto-key options. */ AUTOKEY_FLAG_INSERTAVAILABLE = (1 << 0), AUTOKEY_FLAG_INSERTNEEDED = (1 << 1), AUTOKEY_FLAG_ONLYKEYINGSET = (1 << 6),