diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-10 12:39:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-10 12:41:03 +0300 |
commit | c236c80de43245c001ac09ae8d2f067caa929a8a (patch) | |
tree | dbd83aada9a427a9f057eaf2e95667879d53680f /source | |
parent | 427e5ef3427f3a6e026aae5e98deb43cb9d3a96f (diff) |
Fix T55884: shader node linked menu showing incompatible nodes.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_node/node_templates.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_templates.c b/source/blender/editors/space_node/node_templates.c index e3aeb0244e8..8667056a687 100644 --- a/source/blender/editors/space_node/node_templates.c +++ b/source/blender/editors/space_node/node_templates.c @@ -452,6 +452,10 @@ static void ui_node_menu_column(NodeLinkArg *arg, int nclass, const char *cname) BLI_array_declare(sorted_ntypes); NODE_TYPES_BEGIN(ntype) { + if (!(ntype->poll && ntype->poll(ntype, ntree))) { + continue; + } + if (ntype->nclass != nclass) { continue; } |