Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-04-15 11:58:15 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-04-15 11:58:15 +0400
commitd1f90abfa92d3bf46f6424163ea00831d3b8d044 (patch)
treee41ed885be0f9c2ef9a051b28e10bd86e508a553 /source/blender/blenloader
parentbe71c46b24179ae1de3cecbca6b546a61888a581 (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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c3
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
}
}