Fix T55884: shader node linked menu showing incompatible nodes.

This commit is contained in:
Brecht Van Lommel
2018-07-10 11:39:57 +02:00
parent 427e5ef342
commit c236c80de4

View File

@@ -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;
}