Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,472 Lines • ▼ Show 20 Lines | static void rna_def_space_mask_info(StructRNA *srna, int noteflag, const char *mask_set_func) | ||||
| /* mask drawing */ | /* mask drawing */ | ||||
| prop = RNA_def_property(srna, "mask_display_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "mask_display_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "mask_info.draw_type"); | RNA_def_property_enum_sdna(prop, NULL, "mask_info.draw_type"); | ||||
| RNA_def_property_enum_items(prop, dt_uv_items); | RNA_def_property_enum_items(prop, dt_uv_items); | ||||
| RNA_def_property_ui_text(prop, "Edge Display Type", "Display type for mask splines"); | RNA_def_property_ui_text(prop, "Edge Display Type", "Display type for mask splines"); | ||||
| RNA_def_property_update(prop, noteflag, NULL); | RNA_def_property_update(prop, noteflag, NULL); | ||||
| prop = RNA_def_property(srna, "show_mask_smooth", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "mask_info.draw_flag", MASK_DRAWFLAG_SMOOTH); | |||||
| RNA_def_property_ui_text(prop, "Display Smooth Splines", ""); | |||||
| RNA_def_property_update(prop, noteflag, NULL); | |||||
| prop = RNA_def_property(srna, "show_mask_spline", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_mask_spline", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "mask_info.draw_flag", MASK_DRAWFLAG_SPLINE); | RNA_def_property_boolean_sdna(prop, NULL, "mask_info.draw_flag", MASK_DRAWFLAG_SPLINE); | ||||
| RNA_def_property_ui_text(prop, "Show Mask Spline", ""); | RNA_def_property_ui_text(prop, "Show Mask Spline", ""); | ||||
| RNA_def_property_update(prop, noteflag, NULL); | RNA_def_property_update(prop, noteflag, NULL); | ||||
| prop = RNA_def_property(srna, "show_mask_overlay", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_mask_overlay", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "mask_info.draw_flag", MASK_DRAWFLAG_OVERLAY); | RNA_def_property_boolean_sdna(prop, NULL, "mask_info.draw_flag", MASK_DRAWFLAG_OVERLAY); | ||||
| RNA_def_property_ui_text(prop, "Show Mask Overlay", ""); | RNA_def_property_ui_text(prop, "Show Mask Overlay", ""); | ||||
| ▲ Show 20 Lines • Show All 4,568 Lines • Show Last 20 Lines | |||||