Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/node.c
| Context not available. | |||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| Context not available. | |||||
| bNodeType NodeTypeUndefined; | bNodeType NodeTypeUndefined; | ||||
| bNodeSocketType NodeSocketTypeUndefined; | bNodeSocketType NodeSocketTypeUndefined; | ||||
| static CLG_LogRef LOG = { "bke.node" }; | |||||
| static void node_add_sockets_from_type(bNodeTree *ntree, bNode *node, bNodeType *ntype) | static void node_add_sockets_from_type(bNodeTree *ntree, bNode *node, bNodeType *ntype) | ||||
| { | { | ||||
| Context not available. | |||||
| const char *idname = nodeStaticSocketType(type, subtype); | const char *idname = nodeStaticSocketType(type, subtype); | ||||
| if (!idname) { | if (!idname) { | ||||
| printf("Error: static node socket type %d undefined\n", type); | CLOG_ERROR(&LOG, "static node socket type %d undefined", type); | ||||
| return; | return; | ||||
| } | } | ||||
| Context not available. | |||||
| bNodeSocket *sock; | bNodeSocket *sock; | ||||
| if (!idname) { | if (!idname) { | ||||
| printf("Error: static node socket type %d undefined\n", type); | CLOG_ERROR(&LOG, "static node socket type %d undefined", type); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||
| bNodeSocket *sock; | bNodeSocket *sock; | ||||
| if (!idname) { | if (!idname) { | ||||
| printf("Error: static node socket type %d undefined\n", type); | CLOG_ERROR(&LOG, "static node socket type %d undefined", type); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| } NODE_TYPES_END; | } NODE_TYPES_END; | ||||
| if (!idname) { | if (!idname) { | ||||
| printf("Error: static node type %d undefined\n", type); | CLOG_ERROR(&LOG, "static node type %d undefined", type); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| return nodeAddNode(C, ntree, idname); | return nodeAddNode(C, ntree, idname); | ||||
| Context not available. | |||||