Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_mask.c
| Show First 20 Lines • Show All 944 Lines • ▼ Show 20 Lines | static void rna_def_mask_layer(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Restrict Render", "Restrict renderability"); | RNA_def_property_ui_text(prop, "Restrict Render", "Restrict renderability"); | ||||
| RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1); | RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1); | ||||
| RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); | ||||
| /* select (for dopesheet)*/ | /* select (for dopesheet)*/ | ||||
| prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MASK_LAYERFLAG_SELECT); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MASK_LAYERFLAG_SELECT); | ||||
| RNA_def_property_ui_text(prop, "Select", "Layer is selected for editing in the Dope Sheet"); | RNA_def_property_ui_text(prop, "Select", "Layer is selected for editing in the Dope Sheet"); | ||||
| // RNA_def_property_update(prop, NC_SCREEN | ND_MASK, NULL); | // RNA_def_property_update(prop, NC_WORKSPACE | ND_MASK, NULL); | ||||
| /* render settings */ | /* render settings */ | ||||
| prop = RNA_def_property(srna, "alpha", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "alpha", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "alpha"); | RNA_def_property_float_sdna(prop, NULL, "alpha"); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3); | ||||
| RNA_def_property_ui_text(prop, "Opacity", "Render Opacity"); | RNA_def_property_ui_text(prop, "Opacity", "Render Opacity"); | ||||
| 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 124 Lines • Show Last 20 Lines | |||||