Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/node_shader_util.cc
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| sh_node_type_base(ntype, type, name, nclass); | sh_node_type_base(ntype, type, name, nclass); | ||||
| ntype->poll = sh_fn_poll_default; | ntype->poll = sh_fn_poll_default; | ||||
| ntype->gather_link_search_ops = blender::nodes::search_link_ops_for_basic_node; | ntype->gather_link_search_ops = blender::nodes::search_link_ops_for_basic_node; | ||||
| } | } | ||||
| /* ****** */ | /* ****** */ | ||||
| void nodestack_get_vec(float *in, short type_in, bNodeStack *ns) | static void nodestack_get_vec(float *in, short type_in, bNodeStack *ns) | ||||
| { | { | ||||
| const float *from = ns->vec; | const float *from = ns->vec; | ||||
| if (type_in == SOCK_FLOAT) { | if (type_in == SOCK_FLOAT) { | ||||
| if (ns->sockettype == SOCK_FLOAT) { | if (ns->sockettype == SOCK_FLOAT) { | ||||
| *in = *from; | *in = *from; | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines | |||||