diff options
Diffstat (limited to 'source/blender/depsgraph/intern')
8 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_cycle.cc b/source/blender/depsgraph/intern/builder/deg_builder_cycle.cc index bfb1a981c4d..bea59eceea2 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_cycle.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_cycle.cc @@ -176,7 +176,7 @@ void solve_cycles(CyclesSolverState *state) OperationNode *node = entry->node; bool all_child_traversed = true; const int num_visited = get_node_num_visited_children(node); - for (int i = num_visited; i < node->outlinks.size(); ++i) { + for (int i = num_visited; i < node->outlinks.size(); i++) { Relation *rel = node->outlinks[i]; if (rel->to->type == NodeType::OPERATION) { OperationNode *to = (OperationNode *)rel->to; diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc index fd4c1e251e4..88f2f041354 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc @@ -1155,7 +1155,7 @@ void DepsgraphNodeBuilder::build_particle_settings(ParticleSettings *particle_se &particle_settings->id, NodeType::PARTICLE_SETTINGS, OperationCode::PARTICLE_SETTINGS_EVAL); op_node->set_as_exit(); /* Texture slots. */ - for (int mtex_index = 0; mtex_index < MAX_MTEX; ++mtex_index) { + for (int mtex_index = 0; mtex_index < MAX_MTEX; mtex_index++) { MTex *mtex = particle_settings->mtex[mtex_index]; if (mtex == NULL || mtex->tex == NULL) { continue; @@ -1436,7 +1436,7 @@ void DepsgraphNodeBuilder::build_material(Material *material) void DepsgraphNodeBuilder::build_materials(Material **materials, int num_materials) { - for (int i = 0; i < num_materials; ++i) { + for (int i = 0; i < num_materials; i++) { if (materials[i] == NULL) { continue; } diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc index 2f6b8c0ba6b..88ebf1c9b50 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc @@ -105,7 +105,7 @@ void DepsgraphNodeBuilder::build_view_layer(Scene *scene, * * TODO(sergey): Need to go more granular on visibility checks. */ build_object(base_index, base->object, linked_state, true); - ++base_index; + base_index++; } } build_layer_collections(&view_layer->layer_collections); diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index c7b545e9feb..61e9b83273b 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -1809,7 +1809,7 @@ void DepsgraphRelationBuilder::build_particle_settings(ParticleSettings *part) particle_settings_init_key, particle_settings_eval_key, "Particle Settings Init Order"); add_relation(particle_settings_reset_key, particle_settings_eval_key, "Particle Settings Reset"); /* Texture slots. */ - for (int mtex_index = 0; mtex_index < MAX_MTEX; ++mtex_index) { + for (int mtex_index = 0; mtex_index < MAX_MTEX; mtex_index++) { MTex *mtex = part->mtex[mtex_index]; if (mtex == NULL || mtex->tex == NULL) { continue; @@ -2258,7 +2258,7 @@ void DepsgraphRelationBuilder::build_material(Material *material) void DepsgraphRelationBuilder::build_materials(Material **materials, int num_materials) { - for (int i = 0; i < num_materials; ++i) { + for (int i = 0; i < num_materials; i++) { if (materials[i] == NULL) { continue; } diff --git a/source/blender/depsgraph/intern/builder/deg_builder_transitive.cc b/source/blender/depsgraph/intern/builder/deg_builder_transitive.cc index 3e5e96d30ff..34d2afcfa66 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_transitive.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_transitive.cc @@ -92,15 +92,15 @@ void deg_graph_transitive_reduction(Depsgraph *graph) * set/cleared. */ /* TODO: there will be other types in future, so iterators above * need modifying. */ - ++it_rel; + it_rel++; } else if (rel->from->custom_flags & OP_REACHABLE) { rel->unlink(); OBJECT_GUARDED_DELETE(rel, Relation); - ++num_removed_relations; + num_removed_relations++; } else { - ++it_rel; + it_rel++; } } } diff --git a/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc b/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc index 9c4a672b805..ee3959a0861 100644 --- a/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc +++ b/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc @@ -144,7 +144,7 @@ static int deg_debug_node_color_index(const Node *node) #ifdef COLOR_SCHEME_NODE_TYPE const int(*pair)[2]; - for (pair = deg_debug_node_type_color_map; (*pair)[0] >= 0; ++pair) { + for (pair = deg_debug_node_type_color_map; (*pair)[0] >= 0; pair++) { if ((*pair)[0] == node->type) { return (*pair)[1]; } @@ -197,7 +197,7 @@ static void deg_debug_graphviz_legend(const DebugContext &ctx) #ifdef COLOR_SCHEME_NODE_TYPE const int(*pair)[2]; - for (pair = deg_debug_node_type_color_map; (*pair)[0] >= 0; ++pair) { + for (pair = deg_debug_node_type_color_map; (*pair)[0] >= 0; pair++) { DepsNodeFactory *nti = type_get_factory((NodeType)(*pair)[0]); deg_debug_graphviz_legend_color( ctx, nti->tname().c_str(), deg_debug_colors_light[(*pair)[1] % deg_debug_max_colors]); diff --git a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc index b4cf30685a2..4a668e817fe 100644 --- a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc +++ b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc @@ -85,7 +85,7 @@ string gnuplotify_name(const string &name) { string result = ""; const int length = name.length(); - for (int i = 0; i < length; ++i) { + for (int i = 0; i < length; i++) { const char ch = name[i]; if (ch == '_') { result += "\\\\\\"; diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cc b/source/blender/depsgraph/intern/depsgraph_debug.cc index 6253d31b8aa..c5a756102ca 100644 --- a/source/blender/depsgraph/intern/depsgraph_debug.cc +++ b/source/blender/depsgraph/intern/depsgraph_debug.cc @@ -112,13 +112,13 @@ bool DEG_debug_consistency_check(Depsgraph *graph) int counter1 = 0; for (DEG::Relation *tmp_rel : node->outlinks) { if (tmp_rel == rel) { - ++counter1; + counter1++; } } int counter2 = 0; for (DEG::Relation *tmp_rel : rel->to->inlinks) { if (tmp_rel == rel) { - ++counter2; + counter2++; } } if (counter1 != counter2) { @@ -137,13 +137,13 @@ bool DEG_debug_consistency_check(Depsgraph *graph) int counter1 = 0; for (DEG::Relation *tmp_rel : node->inlinks) { if (tmp_rel == rel) { - ++counter1; + counter1++; } } int counter2 = 0; for (DEG::Relation *tmp_rel : rel->from->outlinks) { if (tmp_rel == rel) { - ++counter2; + counter2++; } } if (counter1 != counter2) { @@ -179,7 +179,7 @@ bool DEG_debug_consistency_check(Depsgraph *graph) int num_links_pending = 0; for (DEG::Relation *rel : node->inlinks) { if (rel->from->type == DEG::NodeType::OPERATION) { - ++num_links_pending; + num_links_pending++; } } if (node->num_links_pending != num_links_pending) { |