Depsgraph: don't lose the update tag on rebuild for op nodes with a name.

This fixes a missing update when clearing the Text On Curve
(follow_curve) option of a text object.
This commit is contained in:
Alexander Gavrilov 2018-10-25 10:29:17 +03:00
parent 1a827e0564
commit c25fa615d4
2 changed files with 3 additions and 1 deletions

View File

@ -373,6 +373,7 @@ void DepsgraphNodeBuilder::begin_build()
entry_tag.id_orig = id_node->id_orig;
entry_tag.component_type = comp_node->type;
entry_tag.opcode = op_node->opcode;
entry_tag.name = op_node->name;
saved_entry_tags_.push_back(entry_tag);
};
GSET_FOREACH_END();
@ -395,7 +396,7 @@ void DepsgraphNodeBuilder::end_build()
if (comp_node == NULL) {
continue;
}
OperationDepsNode *op_node = comp_node->find_operation(entry_tag.opcode);
OperationDepsNode *op_node = comp_node->find_operation(entry_tag.opcode, entry_tag.name, -1);
if (op_node == NULL) {
continue;
}

View File

@ -244,6 +244,7 @@ protected:
ID *id_orig;
eDepsNode_Type component_type;
eDepsOperation_Code opcode;
const char *name;
};
vector<SavedEntryTag> saved_entry_tags_;