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:
authorCampbell Barton <ideasman42@gmail.com>2020-04-24 04:43:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-04-24 04:43:30 +0300
commitaf0a042da72cd7466a6c27714f8b72671fa4a1c7 (patch)
tree338a788b7b2a6fdbf6978562634ca300b1994dd6 /source/blender/depsgraph
parentd712f1f83af881be536ec0d183b7d3025c172684 (diff)
Cleanup: remove unused arg, clang-format
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_query_foreach.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_query_foreach.cc b/source/blender/depsgraph/intern/depsgraph_query_foreach.cc
index 4882897ad8d..efd7d6e77ef 100644
--- a/source/blender/depsgraph/intern/depsgraph_query_foreach.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query_foreach.cc
@@ -66,12 +66,11 @@ bool deg_foreach_needs_visit(const OperationNode *op_node, const int flags)
return true;
}
-void deg_foreach_dependent_operation(const Depsgraph *graph,
- const IDNode *target_id_node,
- eDepsObjectComponentType source_component_type,
- int flags,
- DEGForeachOperation callback,
- void *user_data)
+static void deg_foreach_dependent_operation(const IDNode *target_id_node,
+ eDepsObjectComponentType source_component_type,
+ int flags,
+ DEGForeachOperation callback,
+ void *user_data)
{
if (target_id_node == nullptr) {
/* TODO(sergey): Shall we inform or assert here about attempt to start
@@ -160,8 +159,7 @@ void deg_foreach_dependent_ID_component(const Depsgraph *graph,
data.callback = callback;
data.user_data = user_data;
data.target_id_node = graph->find_id_node(id);
- deg_foreach_dependent_operation(graph,
- data.target_id_node,
+ deg_foreach_dependent_operation(data.target_id_node,
source_component_type,
flags,
deg_foreach_dependent_component_callback,
@@ -197,7 +195,7 @@ void deg_foreach_dependent_ID(const Depsgraph *graph,
data.user_data = user_data;
data.target_id_node = graph->find_id_node(id);
deg_foreach_dependent_operation(
- graph, data.target_id_node, DEG_OB_COMP_ANY, 0, deg_foreach_dependent_ID_callback, &data);
+ data.target_id_node, DEG_OB_COMP_ANY, 0, deg_foreach_dependent_ID_callback, &data);
}
void deg_foreach_ancestor_ID(const Depsgraph *graph,