Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Context not available. | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| const EnumPropertyItem rna_enum_xray_mode_items[] = { | |||||
| {V3D_SHADING_XRAY_DEFAULT, | |||||
| "DEFAULT", | |||||
| ICON_XRAY, | |||||
| "Default X-Ray", | |||||
| "Header button toggles transparent scene display"}, | |||||
| {V3D_SHADING_XRAY_AUTOMATIC, | |||||
| "AUTOMATIC", | |||||
| ICON_XRAY_AUTO, | |||||
| "Automatic X-Ray", | |||||
| "Header button toggles automatic engagement of transparent scene display during box, lasso, and circle select"}, | |||||
| {V3D_SHADING_XRAY_SELECT_THROUGH_BUTTON, | |||||
| "BUTTON", | |||||
| ICON_SELECT_THROUGH, | |||||
| "Header Button", | |||||
| "Header button toggles selection of occluded elements for box, lasso, and circle select"}, | |||||
| {V3D_SHADING_XRAY_SELECT_THROUGH_KEYMAP, | |||||
| "KEYMAP", | |||||
| ICON_XRAY, | |||||
| "Keymap", | |||||
| "Header button toggles transparent scene display. Keymap assignable selection of occluded elements (Preferences->Keymap->3D View->Mesh->3D View Tool: Select [Box/Lasso/Circle]->'Mesh Select Through' Checkbox)"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| # include "DNA_anim_types.h" | # include "DNA_anim_types.h" | ||||
| Context not available. | |||||
| 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 | NS_VIEW3D_SHADING, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | ||||
| prop = RNA_def_property(srna, "xray_mode_type", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_items(prop, rna_enum_xray_mode_items); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Select Through Mode", "Method To Select Occluded Vertices, Edges, and Faces"); | |||||
| RNA_def_property_update(prop, | |||||
| NC_SPACE | ND_SPACE_SPREADSHEET, NULL); | |||||
| prop = RNA_def_property(srna, "use_dof", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_dof", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_SHADING_DEPTH_OF_FIELD); | RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_SHADING_DEPTH_OF_FIELD); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| Context not available. | |||||
| "Display face center when face selection is enabled in solid shading modes"); | "Display face center when face selection is enabled in solid shading modes"); | ||||
| 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_face_center_xray", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "overlay.edit_flag", V3D_OVERLAY_EDIT_FACE_DOT_XRAY); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Display Face Center X-Ray", | |||||
| "Display face center when face selection is enabled in X-Ray shading modes"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| prop = RNA_def_property(srna, "show_edge_crease", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_edge_crease", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "overlay.edit_flag", V3D_OVERLAY_EDIT_CREASES); | RNA_def_property_boolean_sdna(prop, NULL, "overlay.edit_flag", V3D_OVERLAY_EDIT_CREASES); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| Context not available. | |||||