Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder.cc
| Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | for (IDNode *id_node : graph->id_nodes) { | ||||
| ID *id = id_node->id_orig; | ID *id = id_node->id_orig; | ||||
| id_node->finalize_build(graph); | id_node->finalize_build(graph); | ||||
| int flag = 0; | int flag = 0; | ||||
| /* Tag rebuild if special evaluation flags changed. */ | /* Tag rebuild if special evaluation flags changed. */ | ||||
| if (id_node->eval_flags != id_node->previous_eval_flags) { | if (id_node->eval_flags != id_node->previous_eval_flags) { | ||||
| flag |= ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY; | flag |= ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY; | ||||
| } | } | ||||
| /* Tag rebuild if the custom data mask changed. */ | /* Tag rebuild if the custom data mask changed. */ | ||||
| if (id_node->customdata_mask != id_node->previous_customdata_mask) { | if (id_node->customdata_masks != id_node->previous_customdata_masks) { | ||||
| flag |= ID_RECALC_GEOMETRY; | flag |= ID_RECALC_GEOMETRY; | ||||
sergey: Have those wrapped into a single structure, with an overloaded comparison operator. | |||||
| } | } | ||||
| if (!deg_copy_on_write_is_expanded(id_node->id_cow)) { | if (!deg_copy_on_write_is_expanded(id_node->id_cow)) { | ||||
| flag |= ID_RECALC_COPY_ON_WRITE; | flag |= ID_RECALC_COPY_ON_WRITE; | ||||
| /* This means ID is being added to the dependency graph first | /* This means ID is being added to the dependency graph first | ||||
| * time, which is similar to "ob-visible-change" */ | * time, which is similar to "ob-visible-change" */ | ||||
| if (GS(id->name) == ID_OB) { | if (GS(id->name) == ID_OB) { | ||||
| flag |= ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY; | flag |= ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY; | ||||
| } | } | ||||
| Show All 12 Lines | |||||
Have those wrapped into a single structure, with an overloaded comparison operator.