[Bf-blender-cvs] [1b7458f85a6] master: Cleanup: Rename outliner helper function

Julian Eisel noreply at git.blender.org
Mon Oct 12 18:22:54 CEST 2020


Commit: 1b7458f85a6fbee8bbe072f470b6b576221da101
Author: Julian Eisel
Date:   Mon Oct 12 18:19:14 2020 +0200
Branches: master
https://developer.blender.org/rB1b7458f85a6fbee8bbe072f470b6b576221da101

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()`).

===================================================================

M	source/blender/editors/space_outliner/outliner_intern.h
M	source/blender/editors/space_outliner/outliner_tree.c
M	source/blender/editors/space_outliner/outliner_utils.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_intern.h b/source/blender/editors/space_outliner/outliner_intern.h
index d0614302502..2e0ea7a481a 100644
--- a/source/blender/editors/space_outliner/outliner_intern.h
+++ b/source/blender/editors/space_outliner/outliner_intern.h
@@ -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;
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 5ace27a7103..c44a1554478 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -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);
 }
diff --git a/source/blender/editors/space_outliner/outliner_utils.c b/source/blender/editors/space_outliner/outliner_utils.c
index 4db465111b2..907b9d372af 100644
--- a/source/blender/editors/space_outliner/outliner_utils.c
+++ b/source/blender/editors/space_outliner/outliner_utils.c
@@ -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 {



More information about the Bf-blender-cvs mailing list