diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-25 16:13:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-25 16:14:36 +0300 |
commit | fd5c185bebd5a418634b2a8846f0aeea86327b20 (patch) | |
tree | e2f93d793fe173dce0a07c3a7e4385ed6850279d /source/blender/editors/interface | |
parent | baa0da3e69a1225cd18c075be5563c7d811b5347 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 14 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index ffaeb999df7..173aa51f406 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -503,7 +503,7 @@ static void reorder_instanced_panel_list(bContext *C, ARegion *region, Panel *dr /** * Recursive implementation for #UI_panel_set_expand_from_list_data. * - * \return Whether the closed flag for the panel or any subpanels changed. + * \return Whether the closed flag for the panel or any sub-panels changed. */ static bool panel_set_expand_from_list_data_recursive(Panel *panel, short flag, short *flag_index) { @@ -523,7 +523,7 @@ static bool panel_set_expand_from_list_data_recursive(Panel *panel, short flag, } /** - * Set the expansion of the panel and its subpanels from the flag stored by the list data + * Set the expansion of the panel and its sub-panels from the flag stored by the list data * corresponding to this panel. The flag has expansion stored in each bit in depth first * order. */ @@ -594,7 +594,7 @@ static void set_panels_list_data_expand_flag(const bContext *C, ARegion *region) /****************************** panels ******************************/ /** - * Set flag state for a panel and its subpanels. + * Set flag state for a panel and its sub-panels. * * \return True if this function changed any of the flags, false if it didn't. */ @@ -1190,7 +1190,7 @@ void ui_draw_aligned_panel(uiStyle *style, /* Draw panel backdrop if it wasn't already been drawn by the single opaque round box earlier. * Note: Sub-panels blend with panels, so they can't be opaque. */ if (show_background && !(draw_box_style && !is_subpanel)) { - /* Draw the bottom subpanels . */ + /* Draw the bottom sub-panels. */ if (draw_box_style) { if (panel->next) { immUniformThemeColor(panel_col); @@ -2061,8 +2061,8 @@ static void ui_handle_panel_header( } else { const int closed_flag = (align == BUT_HORIZONTAL) ? PNL_CLOSEDX : PNL_CLOSEDY; - /* If a panel has subpanels and it's open, toggle the expansion - * of the subpanels (based on the expansion of the first subpanel). */ + /* If a panel has sub-panels and it's open, toggle the expansion + * of the sub-panels (based on the expansion of the first subpanel). */ Panel *first_child = block->panel->children.first; BLI_assert(first_child != NULL); panel_set_flag_recursive( @@ -2955,7 +2955,7 @@ static void panel_activate_state(const bContext *C, Panel *panel, uiHandlePanelS bool was_drag_drop = (data && data->state == PANEL_STATE_DRAG); - /* Set selection state for the panel and its subpanels, which need to know they are selected + /* Set selection state for the panel and its sub-panels, which need to know they are selected * too so they can be drawn above their parent when it's dragged. */ if (state == PANEL_STATE_EXIT || state == PANEL_STATE_ANIMATION) { if (data && data->state != PANEL_STATE_ANIMATION) { diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 0d6717c8e12..d06c1a251f6 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -1963,7 +1963,7 @@ static short get_constraint_expand_flag(const bContext *C, Panel *panel) } /** - * Save the expand flag for the panel and subpanels to the constraint. + * Save the expand flag for the panel and sub-panels to the constraint. */ static void set_constraint_expand_flag(const bContext *C, Panel *panel, short expand_flag) { |