Depsgraph: Build node and relations for movieclip ID for its nodes

Otherwise we get asserts when opening files with the Move Distortion node.
This commit is contained in:
Dalai Felinto 2018-08-13 10:11:21 -03:00
parent b7784c0cd2
commit cead9abe07
2 changed files with 6 additions and 0 deletions

View File

@ -1359,6 +1359,9 @@ void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree)
else if (id_type == ID_TXT) {
/* Ignore script nodes. */
}
else if (id_type == ID_MC) {
build_movieclip((MovieClip *)id);
}
else if (bnode->type == NODE_GROUP) {
bNodeTree *group_ntree = (bNodeTree *)id;
build_nodetree(group_ntree);

View File

@ -2100,6 +2100,9 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree)
else if (id_type == ID_TXT) {
/* Ignore script nodes. */
}
else if (id_type == ID_MC) {
build_movieclip((MovieClip *)id);
}
else if (bnode->type == NODE_GROUP) {
bNodeTree *group_ntree = (bNodeTree *)id;
build_nodetree(group_ntree);