From 67ba133b19c20b83d06c9c2dd5f2fb5bea5463b5 Mon Sep 17 00:00:00 2001 From: Lukas Toenne Date: Tue, 5 Jun 2012 08:06:15 +0000 Subject: [PATCH] Fix #31706, Crash loading old file in trunk build. --- source/blender/blenloader/intern/readfile.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 71e9bfa33e4..f9200f83997 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6724,6 +6724,11 @@ static void do_versions_nodetree_multi_file_output_format_2_62_1(Scene *sce, bNo char basepath[FILE_MAXDIR]; char filename[FILE_MAXFILE]; + /* ugly, need to remove the old inputs list to avoid bad pointer checks when adding new sockets. + * sock->storage is expected to contain path info in ntreeCompositOutputFileAddSocket. + */ + node->inputs.first = node->inputs.last = NULL; + node->storage = nimf; /* split off filename from the old path, to be used as socket sub-path */