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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-05-19 16:41:26 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-05-19 16:41:26 +0300
commit0e46da76b70a42bab2268942cba0e0d3e4ba47e8 (patch)
treed88d6042087c877ee00dec5496a0e65cd04f73c9 /source/blender/blenloader
parenta7c4b6f49cf169af676a44ec2bf21ca4527fee95 (diff)
Fix crash opening really old files with compositor
There was lack of certain sockets do-versaions: namely the ones which were added in blender versions after the one used to save the file.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_270.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index d3260db1477..810e6507c91 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -1615,6 +1615,8 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
bNode *node;
for (node = ntree->nodes.first; node; node = node->next) {
if (node->type == CMP_NODE_R_LAYERS) {
+ /* Make sure new sockets are properly created. */
+ node_verify_socket_templates(ntree, node);
int pass_index = 0;
const char *sockname;
for (bNodeSocket *sock = node->outputs.first; sock && pass_index < 31; sock = sock->next, pass_index++) {