Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/node_texture_util.c
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (!STREQ(ntree->idname, "TextureNodeTree")) { | if (!STREQ(ntree->idname, "TextureNodeTree")) { | ||||
| *r_disabled_hint = TIP_("Not a texture node tree"); | *r_disabled_hint = TIP_("Not a texture node tree"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| void tex_node_type_base( | void tex_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass) | ||||
| struct bNodeType *ntype, int type, const char *name, short nclass, short flag) | |||||
| { | { | ||||
| node_type_base(ntype, type, name, nclass, flag); | node_type_base(ntype, type, name, nclass); | ||||
| ntype->poll = tex_node_poll_default; | ntype->poll = tex_node_poll_default; | ||||
| ntype->insert_link = node_insert_link_default; | ntype->insert_link = node_insert_link_default; | ||||
| } | } | ||||
| static void tex_call_delegate(TexDelegate *dg, float *out, TexParams *params, short thread) | static void tex_call_delegate(TexDelegate *dg, float *out, TexParams *params, short thread) | ||||
| { | { | ||||
| if (dg->node->need_exec) { | if (dg->node->need_exec) { | ||||
| ▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines | |||||