diff options
author | Julian Eisel <julian@blender.org> | 2022-08-26 18:01:52 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-08-30 13:24:17 +0300 |
commit | 558a6a45b433b2280a96238bd05adeedce25af80 (patch) | |
tree | 5689a515f3b10b47e1207dd95e8a543788670d8b /source/blender/editors/space_outliner/outliner_tools.cc | |
parent | 702f112e77b2a3dbf11584f9ca3b26c0b90fdd70 (diff) |
Cleanup: Avoid misleading Outliner tree element callback name
These functions used the term "find", which makes it sound like a lookup
callback, when in fact it would add elements to a set for further
processing. So use "collect" instead.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tools.cc')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.cc b/source/blender/editors/space_outliner/outliner_tools.cc index ae6b2ee6d58..69c88f3b874 100644 --- a/source/blender/editors/space_outliner/outliner_tools.cc +++ b/source/blender/editors/space_outliner/outliner_tools.cc @@ -2335,7 +2335,7 @@ static void outliner_do_object_delete(bContext *C, } } -static TreeTraversalAction outliner_find_objects_to_delete(TreeElement *te, void *customdata) +static TreeTraversalAction outliner_collect_objects_to_delete(TreeElement *te, void *customdata) { ObjectEditData *data = static_cast<ObjectEditData *>(customdata); GSet *objects_to_delete = data->objects_set; @@ -2402,7 +2402,7 @@ static int outliner_delete_exec(bContext *C, wmOperator *op) &space_outliner->tree, 0, TSE_SELECTED, - outliner_find_objects_to_delete, + outliner_collect_objects_to_delete, &object_delete_data); if (delete_hierarchy) { |