Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| RNA_def_struct_sdna_from(srna, "NodeDilateErode", "storage"); | RNA_def_struct_sdna_from(srna, "NodeDilateErode", "storage"); | ||||
| /* CMP_NODE_DILATEERODE_DISTANCE_FEATHER only */ | /* CMP_NODE_DILATEERODE_DISTANCE_FEATHER only */ | ||||
| prop = RNA_def_property(srna, "falloff", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "falloff", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "falloff"); | RNA_def_property_enum_sdna(prop, NULL, "falloff"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_proportional_falloff_curve_only_items); | RNA_def_property_enum_items(prop, rna_enum_proportional_falloff_curve_only_items); | ||||
| RNA_def_property_ui_text(prop, "Falloff", "Falloff type the feather"); | RNA_def_property_ui_text(prop, "Falloff", "Falloff type the feather"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVE); /* Abusing id_curve :/ */ | RNA_def_property_translation_context(prop, | ||||
| BLT_I18NCONTEXT_ID_CURVE_LEGACY); /* Abusing id_curve :/ */ | |||||
| 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_inpaint(StructRNA *srna) | static void def_cmp_inpaint(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| # if 0 | # if 0 | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| "Edge Kernel Tolerance", | "Edge Kernel Tolerance", | ||||
| "Tolerance to pixels inside kernel which are treating as belonging to the same plane"); | "Tolerance to pixels inside kernel which are treating as belonging to the same plane"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "feather_falloff", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "feather_falloff", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "feather_falloff"); | RNA_def_property_enum_sdna(prop, NULL, "feather_falloff"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_proportional_falloff_curve_only_items); | RNA_def_property_enum_items(prop, rna_enum_proportional_falloff_curve_only_items); | ||||
| RNA_def_property_ui_text(prop, "Feather Falloff", "Falloff type the feather"); | RNA_def_property_ui_text(prop, "Feather Falloff", "Falloff type the feather"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVE); /* Abusing id_curve :/ */ | RNA_def_property_translation_context(prop, | ||||
| BLT_I18NCONTEXT_ID_CURVE_LEGACY); /* Abusing id_curve :/ */ | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| prop = RNA_def_property(srna, "feather_distance", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "feather_distance", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "feather_distance"); | RNA_def_property_int_sdna(prop, NULL, "feather_distance"); | ||||
| RNA_def_property_range(prop, -100, 100); | RNA_def_property_range(prop, -100, 100); | ||||
| RNA_def_property_ui_text(prop, "Feather Distance", "Distance to grow/shrink the feather"); | RNA_def_property_ui_text(prop, "Feather Distance", "Distance to grow/shrink the feather"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||