Fix T88107: rename Convertor to Converter nodes to correct spelling
Differential Revision: https://developer.blender.org/D11198
This commit is contained in:
parent
cd118c5581
commit
21d4a888b8
Notes:
blender-bot
2023-02-14 06:17:14 +01:00
Referenced by issue #88107, Typo in the node socket category menu
|
@ -346,7 +346,7 @@ typedef struct bNodeType {
|
|||
#define NODE_CLASS_OP_FILTER 5
|
||||
#define NODE_CLASS_GROUP 6
|
||||
// #define NODE_CLASS_FILE 7
|
||||
#define NODE_CLASS_CONVERTOR 8
|
||||
#define NODE_CLASS_CONVERTER 8
|
||||
#define NODE_CLASS_MATTE 9
|
||||
#define NODE_CLASS_DISTORT 10
|
||||
// #define NODE_CLASS_OP_DYNAMIC 11 /* deprecated */
|
||||
|
|
|
@ -185,7 +185,7 @@ typedef enum ThemeColorID {
|
|||
TH_NODE_LAYOUT,
|
||||
TH_NODE_SHADER,
|
||||
TH_NODE_INTERFACE,
|
||||
TH_NODE_CONVERTOR,
|
||||
TH_NODE_CONVERTER,
|
||||
TH_NODE_GROUP,
|
||||
TH_NODE_FRAME,
|
||||
TH_NODE_MATTE,
|
||||
|
|
|
@ -631,7 +631,7 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid)
|
|||
case TH_NODE_SHADER:
|
||||
cp = ts->nodeclass_shader;
|
||||
break;
|
||||
case TH_NODE_CONVERTOR:
|
||||
case TH_NODE_CONVERTER:
|
||||
cp = ts->syntaxv;
|
||||
break;
|
||||
case TH_NODE_GROUP:
|
||||
|
|
|
@ -670,8 +670,8 @@ int node_get_colorid(bNode *node)
|
|||
return TH_NODE_INPUT;
|
||||
case NODE_CLASS_OUTPUT:
|
||||
return (node->flag & NODE_DO_OUTPUT) ? TH_NODE_OUTPUT : TH_NODE;
|
||||
case NODE_CLASS_CONVERTOR:
|
||||
return TH_NODE_CONVERTOR;
|
||||
case NODE_CLASS_CONVERTER:
|
||||
return TH_NODE_CONVERTER;
|
||||
case NODE_CLASS_OP_COLOR:
|
||||
return TH_NODE_COLOR;
|
||||
case NODE_CLASS_OP_VECTOR:
|
||||
|
|
|
@ -67,7 +67,7 @@ static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCa
|
|||
func(calldata, NODE_CLASS_OP_COLOR, N_("Color"));
|
||||
func(calldata, NODE_CLASS_OP_VECTOR, N_("Vector"));
|
||||
func(calldata, NODE_CLASS_OP_FILTER, N_("Filter"));
|
||||
func(calldata, NODE_CLASS_CONVERTOR, N_("Convertor"));
|
||||
func(calldata, NODE_CLASS_CONVERTER, N_("Converter"));
|
||||
func(calldata, NODE_CLASS_MATTE, N_("Matte"));
|
||||
func(calldata, NODE_CLASS_DISTORT, N_("Distort"));
|
||||
func(calldata, NODE_CLASS_GROUP, N_("Group"));
|
||||
|
|
|
@ -38,7 +38,7 @@ void register_node_type_cmp_idmask(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_ID_MASK, "ID Mask", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_ID_MASK, "ID Mask", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_idmask_in, cmp_node_idmask_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
|
|
@ -36,7 +36,7 @@ void register_node_type_cmp_math(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_MATH, "Math", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_MATH, "Math", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_math_in, cmp_node_math_out);
|
||||
node_type_label(&ntype, node_math_label);
|
||||
node_type_update(&ntype, node_math_update);
|
||||
|
|
|
@ -38,7 +38,7 @@ void register_node_type_cmp_premulkey(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_PREMULKEY, "Alpha Convert", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_PREMULKEY, "Alpha Convert", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_premulkey_in, cmp_node_premulkey_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
|
|
@ -40,7 +40,7 @@ void register_node_type_cmp_sephsva(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPHSVA, "Separate HSVA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPHSVA, "Separate HSVA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_sephsva_in, cmp_node_sephsva_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
@ -63,7 +63,7 @@ void register_node_type_cmp_combhsva(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBHSVA, "Combine HSVA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBHSVA, "Combine HSVA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_combhsva_in, cmp_node_combhsva_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
|
|
@ -40,7 +40,7 @@ void register_node_type_cmp_seprgba(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPRGBA, "Separate RGBA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPRGBA, "Separate RGBA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_seprgba_in, cmp_node_seprgba_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
@ -63,7 +63,7 @@ void register_node_type_cmp_combrgba(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBRGBA, "Combine RGBA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBRGBA, "Combine RGBA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_combrgba_in, cmp_node_combrgba_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
|
|
@ -43,7 +43,7 @@ void register_node_type_cmp_sepycca(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPYCCA, "Separate YCbCrA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPYCCA, "Separate YCbCrA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_sepycca_in, cmp_node_sepycca_out);
|
||||
node_type_init(&ntype, node_composit_init_mode_sepycca);
|
||||
|
||||
|
@ -72,7 +72,7 @@ void register_node_type_cmp_combycca(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBYCCA, "Combine YCbCrA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBYCCA, "Combine YCbCrA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_combycca_in, cmp_node_combycca_out);
|
||||
node_type_init(&ntype, node_composit_init_mode_combycca);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ void register_node_type_cmp_sepyuva(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPYUVA, "Separate YUVA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SEPYUVA, "Separate YUVA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_sepyuva_in, cmp_node_sepyuva_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
@ -61,7 +61,7 @@ void register_node_type_cmp_combyuva(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBYUVA, "Combine YUVA", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_COMBYUVA, "Combine YUVA", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_combyuva_in, cmp_node_combyuva_out);
|
||||
|
||||
nodeRegisterType(&ntype);
|
||||
|
|
|
@ -45,7 +45,7 @@ void register_node_type_cmp_setalpha(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SETALPHA, "Set Alpha", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SETALPHA, "Set Alpha", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_setalpha_in, cmp_node_setalpha_out);
|
||||
node_type_init(&ntype, node_composit_init_setalpha);
|
||||
node_type_storage(
|
||||
|
|
|
@ -146,7 +146,7 @@ void register_node_type_cmp_switch_view(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SWITCH_VIEW, "Switch View", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SWITCH_VIEW, "Switch View", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, NULL, cmp_node_switch_view_out);
|
||||
|
||||
ntype.initfunc_api = init_switch_view;
|
||||
|
|
|
@ -43,7 +43,7 @@ void register_node_type_cmp_valtorgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_valtorgb_in, cmp_node_valtorgb_out);
|
||||
node_type_size(&ntype, 240, 200, 320);
|
||||
node_type_init(&ntype, node_composit_init_valtorgb);
|
||||
|
@ -66,7 +66,7 @@ void register_node_type_cmp_rgbtobw(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTOR, 0);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, cmp_node_rgbtobw_in, cmp_node_rgbtobw_out);
|
||||
node_type_size_preset(&ntype, NODE_SIZE_SMALL);
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ void register_node_type_fn_boolean_math()
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
fn_node_type_base(&ntype, FN_NODE_BOOLEAN_MATH, "Boolean Math", NODE_CLASS_CONVERTOR, 0);
|
||||
fn_node_type_base(&ntype, FN_NODE_BOOLEAN_MATH, "Boolean Math", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, fn_node_boolean_math_in, fn_node_boolean_math_out);
|
||||
node_type_label(&ntype, node_boolean_math_label);
|
||||
node_type_update(&ntype, node_boolean_math_update);
|
||||
|
|
|
@ -109,7 +109,7 @@ void register_node_type_fn_float_compare()
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
fn_node_type_base(&ntype, FN_NODE_FLOAT_COMPARE, "Float Compare", NODE_CLASS_CONVERTOR, 0);
|
||||
fn_node_type_base(&ntype, FN_NODE_FLOAT_COMPARE, "Float Compare", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, fn_node_float_compare_in, fn_node_float_compare_out);
|
||||
node_type_label(&ntype, node_float_compare_label);
|
||||
node_type_update(&ntype, node_float_compare_update);
|
||||
|
|
|
@ -87,7 +87,7 @@ void register_node_type_fn_float_to_int()
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
fn_node_type_base(&ntype, FN_NODE_FLOAT_TO_INT, "Float to Integer", NODE_CLASS_CONVERTOR, 0);
|
||||
fn_node_type_base(&ntype, FN_NODE_FLOAT_TO_INT, "Float to Integer", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, fn_node_float_to_int_in, fn_node_float_to_int_out);
|
||||
node_type_label(&ntype, node_float_to_int_label);
|
||||
ntype.build_multi_function = fn_node_float_to_int_build_multi_function;
|
||||
|
|
|
@ -80,7 +80,7 @@ static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCa
|
|||
func(calldata, NODE_CLASS_ATTRIBUTE, N_("Attribute"));
|
||||
func(calldata, NODE_CLASS_OP_COLOR, N_("Color"));
|
||||
func(calldata, NODE_CLASS_OP_VECTOR, N_("Vector"));
|
||||
func(calldata, NODE_CLASS_CONVERTOR, N_("Convertor"));
|
||||
func(calldata, NODE_CLASS_CONVERTER, N_("Converter"));
|
||||
func(calldata, NODE_CLASS_LAYOUT, N_("Layout"));
|
||||
}
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ void register_node_type_geo_switch()
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
geo_node_type_base(&ntype, GEO_NODE_SWITCH, "Switch", NODE_CLASS_CONVERTOR, 0);
|
||||
geo_node_type_base(&ntype, GEO_NODE_SWITCH, "Switch", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, geo_node_switch_in, geo_node_switch_out);
|
||||
node_type_init(&ntype, geo_node_switch_init);
|
||||
node_type_update(&ntype, blender::nodes::geo_node_switch_update);
|
||||
|
|
|
@ -130,7 +130,7 @@ static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCa
|
|||
func(calldata, NODE_CLASS_TEXTURE, N_("Texture"));
|
||||
func(calldata, NODE_CLASS_OP_COLOR, N_("Color"));
|
||||
func(calldata, NODE_CLASS_OP_VECTOR, N_("Vector"));
|
||||
func(calldata, NODE_CLASS_CONVERTOR, N_("Convertor"));
|
||||
func(calldata, NODE_CLASS_CONVERTER, N_("Converter"));
|
||||
func(calldata, NODE_CLASS_SCRIPT, N_("Script"));
|
||||
func(calldata, NODE_CLASS_GROUP, N_("Group"));
|
||||
func(calldata, NODE_CLASS_INTERFACE, N_("Interface"));
|
||||
|
|
|
@ -52,7 +52,7 @@ void register_node_type_sh_blackbody(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_BLACKBODY, "Blackbody", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_BLACKBODY, "Blackbody", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_size_preset(&ntype, NODE_SIZE_MIDDLE);
|
||||
node_type_socket_templates(&ntype, sh_node_blackbody_in, sh_node_blackbody_out);
|
||||
node_type_init(&ntype, NULL);
|
||||
|
|
|
@ -78,7 +78,7 @@ void register_node_type_sh_clamp(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_CLAMP, "Clamp", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_CLAMP, "Clamp", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_clamp_in, sh_node_clamp_out);
|
||||
node_type_init(&ntype, node_shader_init_clamp);
|
||||
node_type_gpu(&ntype, gpu_shader_clamp);
|
||||
|
|
|
@ -310,7 +310,7 @@ void register_node_type_sh_map_range(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MAP_RANGE, "Map Range", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MAP_RANGE, "Map Range", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_map_range_in, sh_node_map_range_out);
|
||||
node_type_init(&ntype, node_shader_init_map_range);
|
||||
node_type_update(&ntype, node_shader_update_map_range);
|
||||
|
|
|
@ -152,7 +152,7 @@ void register_node_type_sh_math(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_math_in, sh_node_math_out);
|
||||
node_type_label(&ntype, node_math_label);
|
||||
node_type_gpu(&ntype, gpu_shader_math);
|
||||
|
|
|
@ -61,7 +61,7 @@ void register_node_type_sh_sephsv(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_SEPHSV, "Separate HSV", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_SEPHSV, "Separate HSV", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_sephsv_in, sh_node_sephsv_out);
|
||||
node_type_exec(&ntype, NULL, NULL, node_shader_exec_sephsv);
|
||||
node_type_gpu(&ntype, gpu_shader_sephsv);
|
||||
|
@ -109,7 +109,7 @@ void register_node_type_sh_combhsv(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_COMBHSV, "Combine HSV", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_COMBHSV, "Combine HSV", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_combhsv_in, sh_node_combhsv_out);
|
||||
node_type_exec(&ntype, NULL, NULL, node_shader_exec_combhsv);
|
||||
node_type_gpu(&ntype, gpu_shader_combhsv);
|
||||
|
|
|
@ -106,7 +106,7 @@ void register_node_type_sh_seprgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_SEPRGB, "Separate RGB", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_SEPRGB, "Separate RGB", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_seprgb_in, sh_node_seprgb_out);
|
||||
node_type_exec(&ntype, nullptr, nullptr, node_shader_exec_seprgb);
|
||||
node_type_gpu(&ntype, gpu_shader_seprgb);
|
||||
|
@ -165,7 +165,7 @@ void register_node_type_sh_combrgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_COMBRGB, "Combine RGB", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_COMBRGB, "Combine RGB", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_combrgb_in, sh_node_combrgb_out);
|
||||
node_type_exec(&ntype, nullptr, nullptr, node_shader_exec_combrgb);
|
||||
node_type_gpu(&ntype, gpu_shader_combrgb);
|
||||
|
|
|
@ -91,7 +91,7 @@ void register_node_type_sh_sepxyz(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_SEPXYZ, "Separate XYZ", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_SEPXYZ, "Separate XYZ", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_sepxyz_in, sh_node_sepxyz_out);
|
||||
node_type_gpu(&ntype, gpu_shader_sepxyz);
|
||||
ntype.build_multi_function = sh_node_sepxyz_build_multi_function;
|
||||
|
@ -131,7 +131,7 @@ void register_node_type_sh_combxyz(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_COMBXYZ, "Combine XYZ", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_COMBXYZ, "Combine XYZ", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_combxyz_in, sh_node_combxyz_out);
|
||||
node_type_gpu(&ntype, gpu_shader_combxyz);
|
||||
ntype.build_multi_function = sh_node_combxyz_build_multi_function;
|
||||
|
|
|
@ -50,7 +50,7 @@ void register_node_type_sh_shadertorgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_SHADERTORGB, "Shader to RGB", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_SHADERTORGB, "Shader to RGB", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_shadertorgb_in, sh_node_shadertorgb_out);
|
||||
node_type_init(&ntype, NULL);
|
||||
node_type_storage(&ntype, "", NULL, NULL);
|
||||
|
|
|
@ -61,7 +61,7 @@ void register_node_type_sh_squeeze(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_SQUEEZE, "Squeeze Value", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_SQUEEZE, "Squeeze Value", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_squeeze_in, sh_node_squeeze_out);
|
||||
node_type_storage(&ntype, "", NULL, NULL);
|
||||
node_type_exec(&ntype, NULL, NULL, node_shader_exec_squeeze);
|
||||
|
|
|
@ -175,7 +175,7 @@ void register_node_type_sh_valtorgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_valtorgb_in, sh_node_valtorgb_out);
|
||||
node_type_init(&ntype, node_shader_init_valtorgb);
|
||||
node_type_size_preset(&ntype, NODE_SIZE_LARGE);
|
||||
|
@ -221,7 +221,7 @@ void register_node_type_sh_rgbtobw(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, sh_node_rgbtobw_in, sh_node_rgbtobw_out);
|
||||
node_type_exec(&ntype, nullptr, nullptr, node_shader_exec_rgbtobw);
|
||||
node_type_gpu(&ntype, gpu_shader_rgbtobw);
|
||||
|
|
|
@ -62,7 +62,7 @@ void register_node_type_sh_wavelength(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_node_type_base(&ntype, SH_NODE_WAVELENGTH, "Wavelength", NODE_CLASS_CONVERTOR, 0);
|
||||
sh_node_type_base(&ntype, SH_NODE_WAVELENGTH, "Wavelength", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_size_preset(&ntype, NODE_SIZE_MIDDLE);
|
||||
node_type_socket_templates(&ntype, sh_node_wavelength_in, sh_node_wavelength_out);
|
||||
node_type_init(&ntype, NULL);
|
||||
|
|
|
@ -101,7 +101,7 @@ static void foreach_nodeclass(Scene *UNUSED(scene), void *calldata, bNodeClassCa
|
|||
func(calldata, NODE_CLASS_OP_COLOR, N_("Color"));
|
||||
func(calldata, NODE_CLASS_PATTERN, N_("Patterns"));
|
||||
func(calldata, NODE_CLASS_TEXTURE, N_("Textures"));
|
||||
func(calldata, NODE_CLASS_CONVERTOR, N_("Convertor"));
|
||||
func(calldata, NODE_CLASS_CONVERTER, N_("Converter"));
|
||||
func(calldata, NODE_CLASS_DISTORT, N_("Distort"));
|
||||
func(calldata, NODE_CLASS_GROUP, N_("Group"));
|
||||
func(calldata, NODE_CLASS_INTERFACE, N_("Interface"));
|
||||
|
|
|
@ -61,7 +61,7 @@ void register_node_type_tex_distance(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
tex_node_type_base(&ntype, TEX_NODE_DISTANCE, "Distance", NODE_CLASS_CONVERTOR, 0);
|
||||
tex_node_type_base(&ntype, TEX_NODE_DISTANCE, "Distance", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, inputs, outputs);
|
||||
node_type_storage(&ntype, "", NULL, NULL);
|
||||
node_type_exec(&ntype, NULL, NULL, exec);
|
||||
|
|
|
@ -335,7 +335,7 @@ void register_node_type_tex_math(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
tex_node_type_base(&ntype, TEX_NODE_MATH, "Math", NODE_CLASS_CONVERTOR, 0);
|
||||
tex_node_type_base(&ntype, TEX_NODE_MATH, "Math", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, inputs, outputs);
|
||||
node_type_label(&ntype, node_math_label);
|
||||
node_type_storage(&ntype, "", NULL, NULL);
|
||||
|
|
|
@ -80,7 +80,7 @@ void register_node_type_tex_valtonor(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
tex_node_type_base(&ntype, TEX_NODE_VALTONOR, "Value to Normal", NODE_CLASS_CONVERTOR, 0);
|
||||
tex_node_type_base(&ntype, TEX_NODE_VALTONOR, "Value to Normal", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, inputs, outputs);
|
||||
node_type_exec(&ntype, NULL, NULL, exec);
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ void register_node_type_tex_valtorgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
tex_node_type_base(&ntype, TEX_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTOR, 0);
|
||||
tex_node_type_base(&ntype, TEX_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, valtorgb_in, valtorgb_out);
|
||||
node_type_size_preset(&ntype, NODE_SIZE_LARGE);
|
||||
node_type_init(&ntype, valtorgb_init);
|
||||
|
@ -105,7 +105,7 @@ void register_node_type_tex_rgbtobw(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
tex_node_type_base(&ntype, TEX_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTOR, 0);
|
||||
tex_node_type_base(&ntype, TEX_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTER, 0);
|
||||
node_type_socket_templates(&ntype, rgbtobw_in, rgbtobw_out);
|
||||
node_type_exec(&ntype, NULL, NULL, rgbtobw_exec);
|
||||
|
||||
|
|
Loading…
Reference in New Issue