diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-07 19:28:42 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-07 19:28:42 +0400 |
commit | 5455928262c7b2e99c8eb9be13665d819c4089d5 (patch) | |
tree | 3b6d913321ad02f392e55a4983227b1348884671 /source/blender/blenloader | |
parent | c31ec62d2f5b33c46d54ddc982c0aed305c56a29 (diff) |
Fix #35122: Blenderplayer crashes when loading level
Issue was caused by ntreeUpdateTree calling for a ntree
which is not in G.main.
This lead to issues in ntreeVerifyNodes (which is called
from ntreeUpdateTree).
Made is so ntreeUpdateTree now accepts main as an argument.
Will work for the release, later we could either solve the
TODO mentioned in ntreeUpdateTree which will eliminate need
in main there or make it so context's main is used from all
over where ntreeUpdateTree is called (currently there're
still some usages of G.main).
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index fcd27e42c96..f0dfd0aa84e 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2579,7 +2579,7 @@ static void lib_verify_nodetree(Main *main, int UNUSED(open)) { FOREACH_NODETREE(main, ntree, id) { /* make an update call for the tree */ - ntreeUpdateTree(ntree); + ntreeUpdateTree(main, ntree); } FOREACH_NODETREE_END } } |