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 4,123 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d_overlay(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "show_fade_inactive", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_fade_inactive", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", V3D_OVERLAY_FADE_INACTIVE); | RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", V3D_OVERLAY_FADE_INACTIVE); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Fade Inactive Objects", "Fade inactive geometry using the viewport background color"); | prop, "Fade Inactive Objects", "Fade inactive geometry using the viewport background color"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| prop = RNA_def_property(srna, "show_mode_transfer", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "overlay.flag", V3D_OVERLAY_MODE_TRANSFER); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Flash on Mode Transfer", | |||||
| "Flash the target object when tranfering the active mode to it"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| prop = RNA_def_property(srna, "fade_inactive_alpha", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "fade_inactive_alpha", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "overlay.fade_alpha"); | RNA_def_property_float_sdna(prop, NULL, "overlay.fade_alpha"); | ||||
| RNA_def_property_ui_text(prop, "Opacity", "Strength of the fade effect"); | RNA_def_property_ui_text(prop, "Opacity", "Strength of the fade effect"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_GPencil_update"); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_GPencil_update"); | ||||
| prop = RNA_def_property(srna, "show_xray_bone", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_xray_bone", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 3,474 Lines • Show Last 20 Lines | |||||