Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-10 12:39:57 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-10 12:41:03 +0300
commitc236c80de43245c001ac09ae8d2f067caa929a8a (patch)
treedbd83aada9a427a9f057eaf2e95667879d53680f /source/blender/editors/space_node
parent427e5ef3427f3a6e026aae5e98deb43cb9d3a96f (diff)
Fix T55884: shader node linked menu showing incompatible nodes.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/node_templates.c4
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;
}