Cleanup: Rename outliner helper function

This name makes more sense and is consistent with related functions
(e.g. `outliner_requires_rebuild_on_select_or_active_change()`).
This commit is contained in:
Julian Eisel 2020-10-12 18:19:14 +02:00
parent c1cee363cd
commit 1b7458f85a
3 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ void outliner_build_tree(struct Main *mainvar,
bool outliner_requires_rebuild_on_select_or_active_change(
const struct SpaceOutliner *space_outliner);
bool outliner_mode_requires_always_rebuild(const struct SpaceOutliner *space_outliner);
bool outliner_requires_rebuild_on_open_change(const struct SpaceOutliner *space_outliner);
typedef struct IDsSelectedData {
struct ListBase selected_array;

View File

@ -258,7 +258,7 @@ bool outliner_requires_rebuild_on_select_or_active_change(const SpaceOutliner *s
* Check if a display mode needs a full rebuild if the open/collapsed state changes.
* Element types in these modes don't actually add children if collapsed, so the rebuild is needed.
*/
bool outliner_mode_requires_always_rebuild(const SpaceOutliner *space_outliner)
bool outliner_requires_rebuild_on_open_change(const SpaceOutliner *space_outliner)
{
return ELEM(space_outliner->outlinevis, SO_DATA_API);
}

View File

@ -466,7 +466,7 @@ void outliner_tag_redraw_avoid_rebuild_on_open_change(const SpaceOutliner *space
ARegion *region)
{
/* Avoid rebuild if possible. */
if (outliner_mode_requires_always_rebuild(space_outliner)) {
if (outliner_requires_rebuild_on_open_change(space_outliner)) {
ED_region_tag_redraw(region);
}
else {