diff options
Diffstat (limited to 'source/blender/windowmanager')
10 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/windowmanager/WM_toolsystem.h b/source/blender/windowmanager/WM_toolsystem.h index d2e2b9c8f3b..018165634f2 100644 --- a/source/blender/windowmanager/WM_toolsystem.h +++ b/source/blender/windowmanager/WM_toolsystem.h @@ -38,7 +38,7 @@ struct wmMsgSubscribeKey; struct wmMsgSubscribeValue; struct wmOperatorType; -/* wm_toolsystem.c */ +/* wm_toolsystem.c */ #define WM_TOOLSYSTEM_SPACE_MASK \ ((1 << SPACE_IMAGE) | (1 << SPACE_NODE) | (1 << SPACE_VIEW3D) | (1 << SPACE_SEQ)) diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 0b26f3c54ae..cfa7bb7d448 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -232,7 +232,7 @@ typedef enum eOperatorPropTags { #define KM_ALT2 64 #define KM_OSKEY2 128 -/* KM_MOD_ flags for wmKeyMapItem and wmEvent.alt/shift/oskey/ctrl */ +/* KM_MOD_ flags for `wmKeyMapItem` and `wmEvent.alt/shift/oskey/ctrl`. */ /* note that KM_ANY and KM_NOTHING are used with these defines too */ #define KM_MOD_FIRST 1 #define KM_MOD_SECOND 2 @@ -407,7 +407,7 @@ typedef struct wmNotifier { #define ND_GPENCIL_EDITMODE (85 << 16) /* NC_GEOM Geometry */ -/* Mesh, Curve, MetaBall, Armature, .. */ +/* Mesh, Curve, MetaBall, Armature, etc. */ #define ND_SELECT (90 << 16) #define ND_DATA (91 << 16) #define ND_VERTEX_GROUP (92 << 16) diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_types.h b/source/blender/windowmanager/gizmo/WM_gizmo_types.h index db18ceb0e7f..9a993e1f8d7 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_types.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_types.h @@ -191,7 +191,7 @@ typedef enum eWM_GizmoFlagMapTypeUpdateFlag { typedef enum { /* Drag with extra precision (Shift). */ WM_GIZMO_TWEAK_PRECISE = (1 << 0), - /* Drag with snap enabled (Ctrl). */ + /* Drag with snap enabled (Ctrl). */ WM_GIZMO_TWEAK_SNAP = (1 << 1), } eWM_GizmoFlagTweak; @@ -301,7 +301,7 @@ typedef struct wmGizmoProperty { PropertyRNA *prop; int index; - /* Optional functions for converting to/from RNA */ + /* Optional functions for converting to/from RNA. */ struct { wmGizmoPropertyFnGet value_get_fn; wmGizmoPropertyFnSet value_set_fn; diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index 46e47ae95c4..6dd3e4186c4 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -153,7 +153,7 @@ static void window_manager_blend_read_data(BlendDataReader *reader, ID *id) if (win->workspace_hook != NULL) { /* We need to restore a pointer to this later when reading workspaces, * so store in global oldnew-map. - * Note that this is only needed for versioning of older .blend files now.. */ + * Note that this is only needed for versioning of older .blend files now. */ BLO_read_data_globmap_add(reader, hook, win->workspace_hook); /* Cleanup pointers to data outside of this data-block scope. */ win->workspace_hook->act_layout = NULL; diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c index 0050c834a56..905b0f7b128 100644 --- a/source/blender/windowmanager/intern/wm_event_query.c +++ b/source/blender/windowmanager/intern/wm_event_query.c @@ -218,7 +218,7 @@ bool WM_event_type_mask_test(const int event_type, const enum eEventType_Mask ma /** \name Event Motion Queries * \{ */ -/* for modal callbacks, check configuration for how to interpret exit with tweaks */ +/* for modal callbacks, check configuration for how to interpret exit with tweaks. */ bool WM_event_is_modal_tweak_exit(const wmEvent *event, int tweak_event) { /* if the release-confirm userpref setting is enabled, diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 750b4e5e60d..a0fd53685bc 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -3493,7 +3493,7 @@ void wm_event_do_handlers(bContext *C) } /* If press was handled, we don't want to do click. This way - * press in tool keymap can override click in editor keymap.*/ + * press in tool key-map can override click in editor key-map. */ if (ISMOUSE_BUTTON(event->type) && event->val == KM_PRESS && !wm_action_not_handled(action)) { win->event_queue_check_click = false; diff --git a/source/blender/windowmanager/intern/wm_operator_type.c b/source/blender/windowmanager/intern/wm_operator_type.c index 1f3574f9032..e17d5a9ae70 100644 --- a/source/blender/windowmanager/intern/wm_operator_type.c +++ b/source/blender/windowmanager/intern/wm_operator_type.c @@ -229,7 +229,7 @@ void wm_operatortype_free(void) void WM_operatortype_props_advanced_begin(wmOperatorType *ot) { if (ot_prop_basic_count == -1) { - /* Don't do anything if _begin was called before, but not _end */ + /* Don't do anything if _begin was called before, but not _end. */ ot_prop_basic_count = RNA_struct_count_properties(ot->srna); } } diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 32b0ca66a33..c80e4b26096 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2885,7 +2885,7 @@ static int radial_control_modal(bContext *C, wmOperator *op, const wmEvent *even } } - /* calculate new value and apply snapping */ + /* Calculate new value and apply snapping. */ switch (rc->subtype) { case PROP_NONE: case PROP_DISTANCE: diff --git a/source/blender/windowmanager/intern/wm_platform_support.c b/source/blender/windowmanager/intern/wm_platform_support.c index 45618e9d6d3..54fc454ee65 100644 --- a/source/blender/windowmanager/intern/wm_platform_support.c +++ b/source/blender/windowmanager/intern/wm_platform_support.c @@ -123,7 +123,7 @@ bool WM_platform_support_perform_checks() const char *platform_key = GPU_platform_support_level_key(); /* Check if previous check matches the current check. Don't update the approval when running in - * `background`. this could have been triggered by installing add-ons via installers. */ + * `background`. this could have been triggered by installing add-ons via installers. */ if (support_level != GPU_SUPPORT_LEVEL_UNSUPPORTED && !G.factory_startup && wm_platform_support_check_approval(platform_key, !G.background)) { /* If it matches the user has confirmed and wishes to use it. */ diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index ae5a2c81582..22fbd277893 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -188,7 +188,7 @@ static void wm_ghostwindow_destroy(wmWindowManager *wm, wmWindow *win) GHOST_ActivateWindowDrawingContext(win->ghostwin); GPU_context_active_set(win->gpuctx); - /* Delete local gpu context. */ + /* Delete local GPU context. */ GPU_context_discard(win->gpuctx); GHOST_DisposeWindow(g_system, win->ghostwin); @@ -440,8 +440,8 @@ void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win) void wm_window_title(wmWindowManager *wm, wmWindow *win) { if (WM_window_is_temp_screen(win)) { - /* nothing to do for 'temp' windows, - * because WM_window_open always sets window title */ + /* Nothing to do for 'temp' windows, + * because #WM_window_open always sets window title. */ } else if (win->ghostwin) { /* this is set to 1 if you don't have startup.blend open */ |