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:
authorHans Goudey <h.goudey@me.com>2022-01-18 22:07:18 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:28:35 +0300
commit23addb1d8e15fbd0d49b68836b410a603050377c (patch)
tree91bf8013bba47cb6411462ecdca218b6f21b3060 /source/blender/editors/space_node/node_draw.cc
parenteb5c1d6d12cc14fc11a463e072e3fba83bdbd7b9 (diff)
Cleanup: Make node editor functions private
These operations (sorting and selecting all nodes) should generally be handled by the node editor and not outside code. They were not called outside of the node editor, so they can be moved to the editor's `intern` header.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.cc')
-rw-r--r--source/blender/editors/space_node/node_draw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index 119b046f05f..a68d34f7682 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -232,7 +232,7 @@ static bool compare_nodes(const bNode *a, const bNode *b)
return false;
}
-void ED_node_sort(bNodeTree *ntree)
+void node_sort(bNodeTree *ntree)
{
/* Merge sort is the algorithm of choice here. */
int totnodes = BLI_listbase_count(&ntree->nodes);