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
path: root/source
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-05-16 14:01:37 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-05-16 14:01:37 +0400
commit66181332814f3128254622eada820a42a968c10b (patch)
tree4a77218008be9c1cd155022e338958332c104cab /source
parent49944ba205d74f7729978b8c88f9d15ea533f3e6 (diff)
svn merge ^/trunk/blender -c56611
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 5e01b03cd64..a76d7eaff6d 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2526,9 +2526,11 @@ static void lib_verify_nodetree(Main *main, int UNUSED(open))
link->fromsock = node_group_input_find_socket(input_node, link->fromsock->identifier);
++num_inputs;
- if (input_locx > link->tonode->locx - offsetx)
- input_locx = link->tonode->locx - offsetx;
- input_locy += link->tonode->locy;
+ if (link->tonode) {
+ if (input_locx > link->tonode->locx - offsetx)
+ input_locx = link->tonode->locx - offsetx;
+ input_locy += link->tonode->locy;
+ }
}
else
free_link = TRUE;
@@ -2540,9 +2542,11 @@ static void lib_verify_nodetree(Main *main, int UNUSED(open))
link->tosock = node_group_output_find_socket(output_node, link->tosock->identifier);
++num_outputs;
- if (output_locx < link->fromnode->locx + offsetx)
- output_locx = link->fromnode->locx + offsetx;
- output_locy += link->fromnode->locy;
+ if (link->fromnode) {
+ if (output_locx < link->fromnode->locx + offsetx)
+ output_locx = link->fromnode->locx + offsetx;
+ output_locy += link->fromnode->locy;
+ }
}
else
free_link = TRUE;