Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_workspace.c
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
| #ifdef USE_WORKSPACE_MODE | #ifdef USE_WORKSPACE_MODE | ||||
| prop = RNA_def_property(srna, "object_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "object_mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_object_mode_items); | RNA_def_property_enum_items(prop, rna_enum_object_mode_items); | ||||
| RNA_def_property_enum_funcs(prop, "rna_workspace_object_mode_get", "rna_workspace_object_mode_set", NULL); | RNA_def_property_enum_funcs(prop, "rna_workspace_object_mode_get", "rna_workspace_object_mode_set", NULL); | ||||
| RNA_def_property_ui_text(prop, "Mode", "Object interaction mode"); | RNA_def_property_ui_text(prop, "Mode", "Object interaction mode"); | ||||
| #endif | #endif | ||||
| prop = RNA_def_property(srna, "tool_active_keymap", PROP_STRING, PROP_NONE); | |||||
| RNA_def_property_string_sdna(prop, NULL, "tool_active_keymap"); | |||||
| RNA_def_property_ui_text(prop, "Active Tool", "Currently active tool"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| prop = RNA_def_property(srna, "orientations", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "orientations", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "transform_orientations", NULL); | RNA_def_property_collection_sdna(prop, NULL, "transform_orientations", NULL); | ||||
| RNA_def_property_struct_type(prop, "TransformOrientation"); | RNA_def_property_struct_type(prop, "TransformOrientation"); | ||||
| RNA_def_property_collection_funcs(prop, "rna_workspace_transform_orientations_begin", NULL, NULL, | RNA_def_property_collection_funcs(prop, "rna_workspace_transform_orientations_begin", NULL, NULL, | ||||
| "rna_workspace_transform_orientations_item_get", NULL, NULL, NULL, NULL); | "rna_workspace_transform_orientations_item_get", NULL, NULL, NULL, NULL); | ||||
| RNA_def_property_ui_text(prop, "Transform Orientations", ""); | RNA_def_property_ui_text(prop, "Transform Orientations", ""); | ||||
| prop = RNA_def_property(srna, "render_layer", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "render_layer", PROP_POINTER, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||