Removed the extra ntree->update flag check in lib_verify_nodetree in readfile.c. This is unnecessary as the update flag will be checked internally in ntreeUpdateTree anyway, except for the generic bNodeTreeType->update callback (it could even be harmful by preventing necessary updates that don't use the ntree->update flag). Executing this once after loading a node tree is a useful feature for pynodes, so they can do initial verification.

This commit is contained in:
Lukas Toenne 2013-04-15 07:58:15 +00:00
parent be71c46b24
commit d1f90abfa9

@ -2559,8 +2559,7 @@ static void lib_verify_nodetree(Main *main, int UNUSED(open))
{
FOREACH_NODETREE(main, ntree, id) {
/* make an update call for the tree */
if (ntree->update)
ntreeUpdateTree(ntree);
ntreeUpdateTree(ntree);
} FOREACH_NODETREE_END
}
}