diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-04-15 11:58:15 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-04-15 11:58:15 +0400 |
commit | d1f90abfa92d3bf46f6424163ea00831d3b8d044 (patch) | |
tree | e41ed885be0f9c2ef9a051b28e10bd86e508a553 | |
parent | be71c46b24179ae1de3cecbca6b546a61888a581 (diff) |
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.
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 2c821229fb4..f7c384371ae 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -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 } } |