Cleanup: Remove unneeded texture nodes update function
The function was calling update() on the time curve, but there is no update callback on that node. So, effectively the function was doing nothing.
This commit is contained in:
parent
d892f1037c
commit
81e0973dec
|
@ -1220,7 +1220,6 @@ struct TexResult;
|
|||
#define TEX_NODE_PROC_MAX 600
|
||||
|
||||
/* API */
|
||||
int ntreeTexTagAnimated(struct bNodeTree *ntree);
|
||||
void ntreeTexCheckCyclics(struct bNodeTree *ntree);
|
||||
|
||||
struct bNodeTreeExec *ntreeTexBeginExecTree(struct bNodeTree *ntree);
|
||||
|
|
|
@ -1451,16 +1451,6 @@ void ED_update_for_newframe(Main *bmain, Depsgraph *depsgraph)
|
|||
/* composite */
|
||||
if (scene->use_nodes && scene->nodetree)
|
||||
ntreeCompositTagAnimated(scene->nodetree);
|
||||
|
||||
/* update animated texture nodes */
|
||||
{
|
||||
Tex *tex;
|
||||
for (tex = bmain->textures.first; tex; tex = tex->id.next) {
|
||||
if (tex->use_nodes && tex->nodetree) {
|
||||
ntreeTexTagAnimated(tex->nodetree);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -175,28 +175,6 @@ void register_node_tree_type_tex(void)
|
|||
ntreeTypeAdd(tt);
|
||||
}
|
||||
|
||||
int ntreeTexTagAnimated(bNodeTree *ntree)
|
||||
{
|
||||
bNode *node;
|
||||
|
||||
if (ntree == NULL)
|
||||
return 0;
|
||||
|
||||
for (node = ntree->nodes.first; node; node = node->next) {
|
||||
if (node->type == TEX_NODE_CURVE_TIME) {
|
||||
nodeUpdate(ntree, node);
|
||||
return 1;
|
||||
}
|
||||
else if (node->type == NODE_GROUP) {
|
||||
if (ntreeTexTagAnimated((bNodeTree *)node->id)) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
bNodeTreeExec *ntreeTexBeginExecTree_internal(bNodeExecContext *context,
|
||||
bNodeTree *ntree,
|
||||
bNodeInstanceKey parent_key)
|
||||
|
|
Loading…
Reference in New Issue