Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-11-09 15:25:59 +0300
committerJulian Eisel <julian@blender.org>2020-11-11 21:09:11 +0300
commitc2b3a68f248e67c9dc1289f289d998785d780175 (patch)
treed239f1b219cf0baf2a67e5231802537739a3bd15 /source/blender/editors/space_outliner/outliner_tree.c
parent01318b3112a6627eec5bb75e867ac4468d5f7604 (diff)
Cleanup: Rename Outliner "tree-view" types to "tree-display" & update comments
See https://developer.blender.org/D9499. "View" leads to weird names like `TreeViewViewLayer` and after all they are specific to what we call a "display mode", so "display" is more appropriate. Also add, update and correct comments.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 67616db6b3a..26871ef14a0 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -85,7 +85,7 @@
#include "UI_interface.h"
#include "outliner_intern.h"
-#include "tree/tree_view.hh"
+#include "tree/tree_display.hh"
#ifdef WIN32
# include "BLI_math_base.h" /* M_PI */
@@ -2214,22 +2214,22 @@ void outliner_build_tree(Main *mainvar,
outliner_free_tree(&space_outliner->tree);
outliner_storage_cleanup(space_outliner);
- outliner_tree_view_destroy(&space_outliner->runtime->tree_view);
+ outliner_tree_display_destroy(&space_outliner->runtime->tree_display);
- space_outliner->runtime->tree_view = outliner_tree_view_create(space_outliner->outlinevis,
- space_outliner);
- if (space_outliner->runtime->tree_view) {
+ space_outliner->runtime->tree_display = outliner_tree_display_create(space_outliner->outlinevis,
+ space_outliner);
+ if (space_outliner->runtime->tree_display) {
TreeSourceData source_data = {.bmain = mainvar, .scene = scene, .view_layer = view_layer};
- space_outliner->tree = outliner_tree_view_build_tree(space_outliner->runtime->tree_view,
- &source_data);
+ space_outliner->tree = outliner_tree_display_build_tree(space_outliner->runtime->tree_display,
+ &source_data);
}
- if (space_outliner->runtime->tree_view) {
- /* Skip if there's a tree view that's responsible for adding all elements. */
+ if (space_outliner->runtime->tree_display) {
+ /* Skip if there's a tree-display that's responsible for adding all elements. */
}
/* options */
else if (space_outliner->outlinevis == SO_LIBRARIES) {
- /* Ported to new tree-view, should be built there already. */
+ /* Ported to new tree-display, should be built there already. */
BLI_assert(false);
}
else if (space_outliner->outlinevis == SO_SCENES) {
@@ -2291,7 +2291,7 @@ void outliner_build_tree(Main *mainvar,
outliner_add_orphaned_datablocks(mainvar, space_outliner);
}
else if (space_outliner->outlinevis == SO_VIEW_LAYER) {
- /* Ported to new tree-view, should be built there already. */
+ /* Ported to new tree-display, should be built there already. */
BLI_assert(false);
}