From 42b2ae5f694d554b1f4c58acd0afd26516b9ed20 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 19 Nov 2020 14:23:48 +0100 Subject: Fix lost node links when linked node group datablock is temporarily missing Don't refresh the list of sockets, so that when the .blend file is restored the links remain valid. Also display such nodes in red to indicate an error, same as when the node type info is missing. --- source/blender/compositor/intern/COM_Converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/compositor') diff --git a/source/blender/compositor/intern/COM_Converter.cpp b/source/blender/compositor/intern/COM_Converter.cpp index f7250de8566..9b3355f535a 100644 --- a/source/blender/compositor/intern/COM_Converter.cpp +++ b/source/blender/compositor/intern/COM_Converter.cpp @@ -136,7 +136,7 @@ Node *Converter::convert(bNode *b_node) Node *node = nullptr; /* ignore undefined nodes with missing or invalid node data */ - if (!nodeIsRegistered(b_node)) { + if (nodeTypeUndefined(b_node)) { return nullptr; } -- cgit v1.2.3