Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_workspace.c
| Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | #endif | ||||
| prop = RNA_def_property(srna, "render_layer", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "render_layer", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "SceneLayer"); | RNA_def_property_struct_type(prop, "SceneLayer"); | ||||
| RNA_def_property_pointer_funcs(prop, "rna_workspace_render_layer_get", "rna_workspace_render_layer_set", | RNA_def_property_pointer_funcs(prop, "rna_workspace_render_layer_get", "rna_workspace_render_layer_set", | ||||
| NULL, NULL); | NULL, NULL); | ||||
| RNA_def_property_ui_text(prop, "Active Render Layer", "The active render layer used in this workspace"); | RNA_def_property_ui_text(prop, "Active Render Layer", "The active render layer used in this workspace"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_NULL); | ||||
| RNA_def_property_update(prop, NC_SCREEN | ND_LAYER, NULL); | RNA_def_property_update(prop, NC_SCREEN | ND_LAYER, NULL); | ||||
| 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); | |||||
| } | } | ||||
| static void rna_def_transform_orientation(BlenderRNA *brna) | static void rna_def_transform_orientation(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "TransformOrientation", NULL); | srna = RNA_def_struct(brna, "TransformOrientation", NULL); | ||||
| Show All 19 Lines | |||||