Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_image.c
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | static void init(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| iuser->sfra = 1; | iuser->sfra = 1; | ||||
| iuser->flag |= IMA_ANIM_ALWAYS; | iuser->flag |= IMA_ANIM_ALWAYS; | ||||
| } | } | ||||
| void register_node_type_tex_image(void) | void register_node_type_tex_image(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_IMAGE, "Image", NODE_CLASS_INPUT, NODE_PREVIEW); | tex_node_type_base(&ntype, TEX_NODE_IMAGE, "Image", NODE_CLASS_INPUT); | ||||
| node_type_socket_templates(&ntype, NULL, outputs); | node_type_socket_templates(&ntype, NULL, outputs); | ||||
| node_type_init(&ntype, init); | node_type_init(&ntype, init); | ||||
| node_type_storage(&ntype, "ImageUser", node_free_standard_storage, node_copy_standard_storage); | node_type_storage(&ntype, "ImageUser", node_free_standard_storage, node_copy_standard_storage); | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| ntype.labelfunc = node_image_label; | ntype.labelfunc = node_image_label; | ||||
| ntype.flag = NODE_PREVIEW; | |||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||