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/editors/space_node | |
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/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index bafd1b9a388..0e68ebe7c03 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -1288,7 +1288,7 @@ static void node_draw_basis(const bContext *C, } /* body */ - if (!nodeIsRegistered(node)) { + if (nodeTypeUndefined(node)) { /* use warning color to indicate undefined types */ UI_GetThemeColor4fv(TH_REDALERT, color); } |