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,948 Lines • ▼ Show 20 Lines | static void def_cmp_premul_key(StructRNA *srna) | ||||
| prop = RNA_def_property(srna, "mapping", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "mapping", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "custom1"); | RNA_def_property_enum_sdna(prop, NULL, "custom1"); | ||||
| RNA_def_property_enum_items(prop, type_items); | RNA_def_property_enum_items(prop, type_items); | ||||
| RNA_def_property_ui_text(prop, "Mapping", "Conversion between premultiplied alpha and key alpha"); | RNA_def_property_ui_text(prop, "Mapping", "Conversion between premultiplied alpha and key alpha"); | ||||
| 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_distance_transform(StructRNA *srna) | |||||
| { | |||||
| PropertyRNA *prop; | |||||
| prop = RNA_def_property(srna, "invert", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1); | |||||
| RNA_def_property_ui_text(prop, "Invert", "Invert the inner and outer areas"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "relative", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "custom2", 1); | |||||
| RNA_def_property_ui_text(prop, "Relative", "Use relative (percent) values to get distance"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "threshold", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "custom3"); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "Threshold", "Threshold for binarizing the grayscale image"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | |||||
| } | |||||
| static void def_cmp_glare(StructRNA *srna) | static void def_cmp_glare(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem type_items[] = { | static const EnumPropertyItem type_items[] = { | ||||
| {3, "GHOSTS", 0, "Ghosts", ""}, | {3, "GHOSTS", 0, "Ghosts", ""}, | ||||
| {2, "STREAKS", 0, "Streaks", ""}, | {2, "STREAKS", 0, "Streaks", ""}, | ||||
| {1, "FOG_GLOW", 0, "Fog Glow", ""}, | {1, "FOG_GLOW", 0, "Fog Glow", ""}, | ||||
| ▲ Show 20 Lines • Show All 2,749 Lines • Show Last 20 Lines | |||||