From 0e46da76b70a42bab2268942cba0e0d3e4ba47e8 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 19 May 2017 15:41:26 +0200 Subject: [PATCH] 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. --- source/blender/blenloader/intern/versioning_270.c | 2 ++ 1 file changed, 2 insertions(+) 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++) {