Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,838 Lines • ▼ Show 20 Lines | static void def_cmp_vector_blur(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "use_curved", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_curved", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "curved", 1); | RNA_def_property_boolean_sdna(prop, NULL, "curved", 1); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Curved", "Interpolate between frames in a Bezier curve, rather than linearly"); | prop, "Curved", "Interpolate between frames in a Bezier curve, rather than linearly"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_cmp_set_alpha(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| static const EnumPropertyItem mode_items[] = { | |||||
| {CMP_NODE_SETALPHA_MODE_MULTIPLY, | |||||
| "MULTIPLY", | |||||
| 0, | |||||
| "Multiply", | |||||
| "Multiply the color with the alpha"}, | |||||
sergey: Both color and alpha (aka RGBA) are multiplied by the alpha socket. I think there should be a… | |||||
EAWUnsubmitted Done Inline ActionsPerhaps "Multiply the input image's RGBA channels by the alpha input value."? "Multiply the input colors & alpha by and alpha input value."? Or just show the formula "RGBA*A"? If the node was renamed to Apply Mask Node, then I think "Apply the mask to the input color and alpha." could work. EAW: Perhaps "Multiply the input image's RGBA channels by the alpha input value."? "Multiply the… | |||||
| {CMP_NODE_SETALPHA_MODE_REPLACE, | |||||
| "REPLACE", | |||||
| 0, | |||||
| "Replace", | |||||
| "Replace the alpha channel without effecting the color channels"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| RNA_def_struct_sdna_from(srna, "NodeSetAlpha", "storage"); | |||||
| prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, mode_items); | |||||
| RNA_def_property_ui_text(prop, "Mode", ""); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_cmp_levels(StructRNA *srna) | static void def_cmp_levels(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem channel_items[] = { | static const EnumPropertyItem channel_items[] = { | ||||
| {1, "COMBINED_RGB", 0, "C", "Combined RGB"}, | {1, "COMBINED_RGB", 0, "C", "Combined RGB"}, | ||||
| {2, "RED", 0, "R", "Red Channel"}, | {2, "RED", 0, "R", "Red Channel"}, | ||||
| {3, "GREEN", 0, "G", "Green Channel"}, | {3, "GREEN", 0, "G", "Green Channel"}, | ||||
| ▲ Show 20 Lines • Show All 4,167 Lines • Show Last 20 Lines | |||||
Both color and alpha (aka RGBA) are multiplied by the alpha socket. I think there should be a way to word this more explicit in the tooltip.