Cleanup: Correct comments

This commit is contained in:
2020-09-17 15:18:24 -05:00
parent 1f9e3d44a0
commit 9ee588cd4a

View File

@@ -276,8 +276,8 @@ static Panel *UI_panel_add_instanced_ex(ARegion *region,
} }
/** /**
* Called in situations where panels need to be added dynamically rather than having only one panel * Called in situations where panels need to be added dynamically rather than
* corresponding to each #PanelType. * having only one panel corresponding to each #PanelType.
*/ */
Panel *UI_panel_add_instanced(ARegion *region, Panel *UI_panel_add_instanced(ARegion *region,
ListBase *panels, ListBase *panels,
@@ -501,7 +501,7 @@ static bool panel_set_expand_from_list_data_recursive(Panel *panel, short flag,
/** /**
* Set the expansion of the panel and its sub-panels 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 each panel. The flag has expansion stored in each bit in depth first * corresponding to this panel. The flag has expansion stored in each bit in depth first
* order. * order.
*/ */
void UI_panel_set_expand_from_list_data(const bContext *C, Panel *panel) void UI_panel_set_expand_from_list_data(const bContext *C, Panel *panel)
@@ -551,7 +551,7 @@ static void get_panel_expand_flag(Panel *panel, short *flag, short *flag_index)
/** /**
* Call the callback to store the panel and sub-panel expansion settings in the list item that * Call the callback to store the panel and sub-panel expansion settings in the list item that
* corresponds to this panel. * corresponds to each instanced panel.
* *
* \note This needs to iterate through all of the regions panels because the panel with changed * \note This needs to iterate through all of the regions panels because the panel with changed
* expansion could have been the sub-panel of a instanced panel, meaning it might not know * expansion could have been the sub-panel of a instanced panel, meaning it might not know