diff options
Diffstat (limited to 'source/blender/nodes/texture/node_texture_util.c')
-rw-r--r-- | source/blender/nodes/texture/node_texture_util.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/nodes/texture/node_texture_util.c b/source/blender/nodes/texture/node_texture_util.c index 2091a8bf10e..570b10d6e89 100644 --- a/source/blender/nodes/texture/node_texture_util.c +++ b/source/blender/nodes/texture/node_texture_util.c @@ -39,9 +39,15 @@ #include "node_texture_util.h" -bool tex_node_poll_default(bNodeType *UNUSED(ntype), bNodeTree *ntree) +bool tex_node_poll_default(bNodeType *UNUSED(ntype), + bNodeTree *ntree, + const char **r_disabled_hint) { - return STREQ(ntree->idname, "TextureNodeTree"); + if (!STREQ(ntree->idname, "TextureNodeTree")) { + *r_disabled_hint = "Not a texture node tree"; + return false; + } + return true; } void tex_node_type_base( |