Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_viewer.c
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if (cdata->do_preview) { | ||||
| tex_input_rgba(col, in[0], ¶ms, cdata->thread); | tex_input_rgba(col, in[0], ¶ms, cdata->thread); | ||||
| } | } | ||||
| } | } | ||||
| void register_node_type_tex_viewer(void) | void register_node_type_tex_viewer(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_VIEWER, "Viewer", NODE_CLASS_OUTPUT, NODE_PREVIEW); | tex_node_type_base(&ntype, TEX_NODE_VIEWER, "Viewer", NODE_CLASS_OUTPUT); | ||||
| node_type_socket_templates(&ntype, inputs, outputs); | node_type_socket_templates(&ntype, inputs, outputs); | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| ntype.no_muting = true; | ntype.no_muting = true; | ||||
| ntype.flag = NODE_PREVIEW; | |||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||