Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/node_texture_util.c
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| * | * | ||||
| * This system needs recode, a node system should rely on the stack, and | * This system needs recode, a node system should rely on the stack, and | ||||
| * callbacks for nodes only should evaluate own node, not recursively go | * callbacks for nodes only should evaluate own node, not recursively go | ||||
| * over other previous ones. | * over other previous ones. | ||||
| */ | */ | ||||
| #include <assert.h> | #include <assert.h> | ||||
| #include "node_texture_util.h" | #include "node_texture_util.h" | ||||
| #include "BPY_extern.h" | |||||
| int tex_node_poll_default(bNodeType *UNUSED(ntype), bNodeTree *ntree) | int tex_node_poll_default(bNodeType *UNUSED(ntype), bNodeTree *ntree) | ||||
| { | { | ||||
| return STREQ(ntree->idname, "TextureNodeTree"); | return STREQ(ntree->idname, "TextureNodeTree"); | ||||
| } | } | ||||
| void tex_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass, short flag) | void tex_node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass, short flag) | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||