Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Show First 20 Lines • Show All 2,420 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "viewport_shade", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "viewport_shade", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "drawtype"); | RNA_def_property_enum_sdna(prop, NULL, "drawtype"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_viewport_shade_items); | RNA_def_property_enum_items(prop, rna_enum_viewport_shade_items); | ||||
| RNA_def_property_enum_funcs(prop, "rna_SpaceView3D_viewport_shade_get", "rna_SpaceView3D_viewport_shade_set", | RNA_def_property_enum_funcs(prop, "rna_SpaceView3D_viewport_shade_get", "rna_SpaceView3D_viewport_shade_set", | ||||
| "rna_SpaceView3D_viewport_shade_itemf"); | "rna_SpaceView3D_viewport_shade_itemf"); | ||||
| RNA_def_property_ui_text(prop, "Viewport Shading", "Method to display/shade objects in the 3D View"); | RNA_def_property_ui_text(prop, "Viewport Shading", "Method to display/shade objects in the 3D View"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_SpaceView3D_viewport_shade_update"); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_SpaceView3D_viewport_shade_update"); | ||||
| prop = RNA_def_property(srna, "local_view", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "localvd"); | |||||
| RNA_def_property_ui_text(prop, "Local View", | |||||
| "Display an isolated sub-set of objects, apart from the scene visibility"); | |||||
| prop = RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ_LENGTH); | prop = RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ_LENGTH); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_float_funcs(prop, "rna_View3D_CursorLocation_get", "rna_View3D_CursorLocation_set", NULL); | RNA_def_property_float_funcs(prop, "rna_View3D_CursorLocation_get", "rna_View3D_CursorLocation_set", NULL); | ||||
| RNA_def_property_ui_text(prop, "3D Cursor Location", | RNA_def_property_ui_text(prop, "3D Cursor Location", | ||||
| "3D cursor location for this view (dependent on local view setting)"); | "3D cursor location for this view (dependent on local view setting)"); | ||||
| RNA_def_property_ui_range(prop, -10000.0, 10000.0, 1, RNA_TRANSLATION_PREC_DEFAULT); | RNA_def_property_ui_range(prop, -10000.0, 10000.0, 1, RNA_TRANSLATION_PREC_DEFAULT); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| ▲ Show 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layers", PROP_BOOLEAN, PROP_LAYER_MEMBER); | prop = RNA_def_property(srna, "layers", PROP_BOOLEAN, PROP_LAYER_MEMBER); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "lay", 1); | RNA_def_property_boolean_sdna(prop, NULL, "lay", 1); | ||||
| RNA_def_property_array(prop, 20); | RNA_def_property_array(prop, 20); | ||||
| RNA_def_property_boolean_funcs(prop, NULL, "rna_SpaceView3D_layer_set"); | RNA_def_property_boolean_funcs(prop, NULL, "rna_SpaceView3D_layer_set"); | ||||
| RNA_def_property_ui_text(prop, "Visible Layers", "Layers visible in this 3D View"); | RNA_def_property_ui_text(prop, "Visible Layers", "Layers visible in this 3D View"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_SpaceView3D_layer_update"); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_SpaceView3D_layer_update"); | ||||
| prop = RNA_def_property(srna, "layers_local_view", PROP_BOOLEAN, PROP_LAYER_MEMBER); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "lay", 0x01000000); | |||||
| RNA_def_property_array(prop, 8); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Local View Layers", "Local view layers visible in this 3D View"); | |||||
| prop = RNA_def_property(srna, "layers_used", PROP_BOOLEAN, PROP_LAYER_MEMBER); | prop = RNA_def_property(srna, "layers_used", PROP_BOOLEAN, PROP_LAYER_MEMBER); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "lay_used", 1); | RNA_def_property_boolean_sdna(prop, NULL, "lay_used", 1); | ||||
| RNA_def_property_array(prop, 20); | RNA_def_property_array(prop, 20); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Used Layers", "Layers that contain something"); | RNA_def_property_ui_text(prop, "Used Layers", "Layers that contain something"); | ||||
| prop = RNA_def_property(srna, "region_3d", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "region_3d", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "RegionView3D"); | RNA_def_property_struct_type(prop, "RegionView3D"); | ||||
| ▲ Show 20 Lines • Show All 2,109 Lines • Show Last 20 Lines | |||||