diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-11-19 16:23:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-11-19 17:55:05 +0300 |
commit | 42b2ae5f694d554b1f4c58acd0afd26516b9ed20 (patch) | |
tree | 8ecbae259cdc8f5801139f522f66e4e077069035 /source/blender/compositor | |
parent | c5306dd0cdf1f320f7b498d7b914d9374a7aa90f (diff) |
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.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r-- | source/blender/compositor/intern/COM_Converter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |