Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,132 Lines • ▼ Show 20 Lines | static const EnumPropertyItem workspace_tool_items[] = { | ||||
| {SCE_WORKSPACE_TOOL_DEFAULT, "DEFAULT", 0, "Active Tool", ""}, | {SCE_WORKSPACE_TOOL_DEFAULT, "DEFAULT", 0, "Active Tool", ""}, | ||||
| {SCE_WORKSPACE_TOOL_FALLBACK, "FALLBACK", 0, "Select", ""}, | {SCE_WORKSPACE_TOOL_FALLBACK, "FALLBACK", 0, "Select", ""}, | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| prop = RNA_def_property(srna, "workspace_tool_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "workspace_tool_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "workspace_tool_type"); | RNA_def_property_enum_sdna(prop, NULL, "workspace_tool_type"); | ||||
| RNA_def_property_enum_items(prop, workspace_tool_items); | RNA_def_property_enum_items(prop, workspace_tool_items); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_EDITOR_VIEW3D); | |||||
| RNA_def_property_ui_text(prop, "Drag", "Action when dragging in the viewport"); | RNA_def_property_ui_text(prop, "Drag", "Action when dragging in the viewport"); | ||||
| /* Transform */ | /* Transform */ | ||||
| prop = RNA_def_property(srna, "use_proportional_edit", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_proportional_edit", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "proportional_edit", PROP_EDIT_USE); | RNA_def_property_boolean_sdna(prop, NULL, "proportional_edit", PROP_EDIT_USE); | ||||
| RNA_def_property_ui_text(prop, "Proportional Editing", "Proportional edit mode"); | RNA_def_property_ui_text(prop, "Proportional Editing", "Proportional edit mode"); | ||||
| RNA_def_property_ui_icon(prop, ICON_PROP_ON, 0); | RNA_def_property_ui_icon(prop, ICON_PROP_ON, 0); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | ||||
| ▲ Show 20 Lines • Show All 5,137 Lines • Show Last 20 Lines | |||||