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:
authorJacques Lucke <jacques@blender.org>2020-07-13 11:40:05 +0300
committerJacques Lucke <jacques@blender.org>2020-07-13 11:40:05 +0300
commit0718c6fae002a37b7448bf4b5841d08de114050e (patch)
tree17dd4f7220bb873a77b558925c96df64405a0135 /source/blender/functions
parent91c763af3e504cbb808f30900909a80e256330dd (diff)
Cleanup: fix clang tidy warning
The code was actually correct, but clang tidy complaint about using the Vector after it was moved from.
Diffstat (limited to 'source/blender/functions')
-rw-r--r--source/blender/functions/intern/multi_function_network_optimization.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/functions/intern/multi_function_network_optimization.cc b/source/blender/functions/intern/multi_function_network_optimization.cc
index 4fe0b506df8..849b24a318f 100644
--- a/source/blender/functions/intern/multi_function_network_optimization.cc
+++ b/source/blender/functions/intern/multi_function_network_optimization.cc
@@ -454,8 +454,9 @@ static void relink_duplicate_nodes(MFNetwork &network,
}
Vector<MFNode *, 16> nodes_to_check = nodes_with_same_hash;
- Vector<MFNode *, 16> remaining_nodes;
while (nodes_to_check.size() >= 2) {
+ Vector<MFNode *, 16> remaining_nodes;
+
MFNode &deduplicated_node = *nodes_to_check[0];
for (MFNode *node : nodes_to_check.as_span().drop_front(1)) {
/* This is true with fairly high probability, but hash collisions can happen. So we have to