Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_mask.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "blend_flag", MASK_BLENDFLAG_INVERT); | RNA_def_property_boolean_sdna(prop, NULL, "blend_flag", MASK_BLENDFLAG_INVERT); | ||||
| RNA_def_property_ui_text(prop, "Restrict View", "Invert the mask black/white"); | RNA_def_property_ui_text(prop, "Restrict View", "Invert the mask black/white"); | ||||
| RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | ||||
| 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_MASK | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | ||||
| /* filling options */ | /* filling options */ | ||||
| prop = RNA_def_property(srna, "use_fill_holes", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_fill_holes", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", MASK_LAYERFLAG_FILL_DISCRETE); | RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", MASK_LAYERFLAG_FILL_DISCRETE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Calculate Holes", "Calculate holes when filling overlapping curves"); | prop, "Calculate Holes", "Calculate holes when filling overlapping curves"); | ||||
| RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||