Separate ColorRamp node name into Color Ramp #104996
|
@ -332,7 +332,7 @@ static void rna_ColorRamp_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *
|
|||
WM_main_add_notifier(NC_LINESTYLE, linestyle);
|
||||
break;
|
||||
}
|
||||
/* ColorRamp for particle display is owned by the object (see #54422) */
|
||||
/* Color Ramp for particle display is owned by the object (see #54422) */
|
||||
case ID_OB:
|
||||
case ID_PA: {
|
||||
ParticleSettings *part = (ParticleSettings *)ptr->owner_id;
|
||||
|
@ -979,7 +979,7 @@ static void rna_def_color_ramp_element_api(BlenderRNA *brna, PropertyRNA *cprop)
|
|||
|
||||
/* TODO: make these functions generic in `texture.c`. */
|
||||
func = RNA_def_function(srna, "new", "rna_ColorRampElement_new");
|
||||
RNA_def_function_ui_description(func, "Add element to ColorRamp");
|
||||
RNA_def_function_ui_description(func, "Add element to Color Ramp");
|
||||
RNA_def_function_flag(func, FUNC_USE_REPORTS);
|
||||
parm = RNA_def_float(
|
||||
func, "position", 0.0f, 0.0f, 1.0f, "Position", "Position to add element", 0.0f, 1.0f);
|
||||
|
@ -989,7 +989,7 @@ static void rna_def_color_ramp_element_api(BlenderRNA *brna, PropertyRNA *cprop)
|
|||
RNA_def_function_return(func, parm);
|
||||
|
||||
func = RNA_def_function(srna, "remove", "rna_ColorRampElement_remove");
|
||||
RNA_def_function_ui_description(func, "Delete element from ColorRamp");
|
||||
RNA_def_function_ui_description(func, "Delete element from Color Ramp");
|
||||
RNA_def_function_flag(func, FUNC_USE_REPORTS);
|
||||
parm = RNA_def_pointer(func, "element", "ColorRampElement", "", "Element to remove");
|
||||
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR);
|
||||
|
@ -1069,14 +1069,14 @@ static void rna_def_color_ramp(BlenderRNA *brna)
|
|||
# endif
|
||||
|
||||
func = RNA_def_function(srna, "evaluate", "rna_ColorRamp_eval");
|
||||
RNA_def_function_ui_description(func, "Evaluate ColorRamp");
|
||||
RNA_def_function_ui_description(func, "Evaluate Color Ramp");
|
||||
parm = RNA_def_float(func,
|
||||
"position",
|
||||
1.0f,
|
||||
0.0f,
|
||||
1.0f,
|
||||
"Position",
|
||||
"Evaluate ColorRamp at position",
|
||||
"Evaluate Color Ramp at position",
|
||||
0.0f,
|
||||
1.0f);
|
||||
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
|
||||
|
|
|
@ -26,7 +26,7 @@ DefNode(Node, NODE_REROUTE, 0, "REROUT
|
|||
DefNode(ShaderNode, SH_NODE_RGB, 0, "RGB", RGB, "RGB", "A color picker")
|
||||
DefNode(ShaderNode, SH_NODE_VALUE, 0, "VALUE", Value, "Value", "Used to Input numerical values to other nodes in the tree")
|
||||
DefNode(ShaderNode, SH_NODE_MIX_RGB_LEGACY, def_mix_rgb, "MIX_RGB", MixRGB, "MixRGB", "Mix two input colors")
|
||||
DefNode(ShaderNode, SH_NODE_VALTORGB, def_colorramp, "VALTORGB", ValToRGB, "ColorRamp", "Map values to colors with the use of a gradient")
|
||||
DefNode(ShaderNode, SH_NODE_VALTORGB, def_colorramp, "VALTORGB", ValToRGB, "Color Ramp", "Map values to colors with the use of a gradient")
|
||||
DefNode(ShaderNode, SH_NODE_RGBTOBW, 0, "RGBTOBW", RGBToBW, "RGB to BW", "Convert a color's luminance to a grayscale value")
|
||||
DefNode(ShaderNode, SH_NODE_SHADERTORGB, 0, "SHADERTORGB", ShaderToRGB, "Shader to RGB", "Convert rendering effect (such as light and shadow) to color. Typically used for non-photorealistic rendering, to apply additional effects on the output of BSDFs.\nNote: only supported for Eevee")
|
||||
DefNode(ShaderNode, SH_NODE_NORMAL, 0, "NORMAL", Normal, "Normal", "Generate a normal vector and a dot product")
|
||||
|
@ -128,7 +128,7 @@ DefNode(CompositorNode, CMP_NODE_VIEWER, def_cmp_viewer, "VIEWER
|
|||
DefNode(CompositorNode, CMP_NODE_RGB, 0, "RGB", RGB, "RGB", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_VALUE, 0, "VALUE", Value, "Value", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_MIX_RGB, def_mix_rgb, "MIX_RGB", MixRGB, "Mix", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_VALTORGB, def_colorramp, "VALTORGB", ValToRGB, "ColorRamp", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_VALTORGB, def_colorramp, "VALTORGB", ValToRGB, "Color Ramp", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_RGBTOBW, 0, "RGBTOBW", RGBToBW, "RGB to BW", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_NORMAL, 0, "NORMAL", Normal, "Normal", "" )
|
||||
DefNode(CompositorNode, CMP_NODE_CURVE_VEC, def_vector_curve, "CURVE_VEC", CurveVec, "Vector Curves", "" )
|
||||
|
@ -231,7 +231,7 @@ DefNode(TextureNode, TEX_NODE_BRICKS, def_tex_bricks, "BRICKS
|
|||
DefNode(TextureNode, TEX_NODE_MATH, def_math, "MATH", Math, "Math", "" )
|
||||
DefNode(TextureNode, TEX_NODE_MIX_RGB, def_mix_rgb, "MIX_RGB", MixRGB, "Mix RGB", "" )
|
||||
DefNode(TextureNode, TEX_NODE_RGBTOBW, 0, "RGBTOBW", RGBToBW, "RGB to BW", "" )
|
||||
DefNode(TextureNode, TEX_NODE_VALTORGB, def_colorramp, "VALTORGB", ValToRGB, "ColorRamp", "" )
|
||||
DefNode(TextureNode, TEX_NODE_VALTORGB, def_colorramp, "VALTORGB", ValToRGB, "Color Ramp", "" )
|
||||
DefNode(TextureNode, TEX_NODE_IMAGE, def_tex_image, "IMAGE", Image, "Image", "" )
|
||||
DefNode(TextureNode, TEX_NODE_CURVE_RGB, def_rgb_curve, "CURVE_RGB", CurveRGB, "RGB Curves", "" )
|
||||
DefNode(TextureNode, TEX_NODE_INVERT, 0, "INVERT", Invert, "Invert", "" )
|
||||
|
|
|
@ -135,7 +135,7 @@ void register_node_type_cmp_valtorgb()
|
|||
|
||||
static bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_VALTORGB, "Color Ramp", NODE_CLASS_CONVERTER);
|
||||
ntype.declare = file_ns::cmp_node_valtorgb_declare;
|
||||
node_type_size(&ntype, 240, 200, 320);
|
||||
ntype.initfunc = file_ns::node_composit_init_valtorgb;
|
||||
|
|
|
@ -136,7 +136,7 @@ void register_node_type_sh_valtorgb()
|
|||
|
||||
static bNodeType ntype;
|
||||
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER);
|
||||
sh_fn_node_type_base(&ntype, SH_NODE_VALTORGB, "Color Ramp", NODE_CLASS_CONVERTER);
|
||||
ntype.declare = file_ns::sh_node_valtorgb_declare;
|
||||
ntype.initfunc = file_ns::node_shader_init_valtorgb;
|
||||
node_type_size_preset(&ntype, NODE_SIZE_LARGE);
|
||||
|
|
|
@ -47,7 +47,7 @@ void register_node_type_tex_valtorgb(void)
|
|||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
tex_node_type_base(&ntype, TEX_NODE_VALTORGB, "ColorRamp", NODE_CLASS_CONVERTER);
|
||||
tex_node_type_base(&ntype, TEX_NODE_VALTORGB, "Color Ramp", NODE_CLASS_CONVERTER);
|
||||
node_type_socket_templates(&ntype, valtorgb_in, valtorgb_out);
|
||||
node_type_size_preset(&ntype, NODE_SIZE_LARGE);
|
||||
ntype.initfunc = valtorgb_init;
|
||||
|
|
Loading…
Reference in New Issue