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 2,934 Lines • ▼ Show 20 Lines | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_transform_pivot_point_align", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform_pivot_point_align", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_AXIS_ALIGN); | RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_AXIS_ALIGN); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Only Origins", "Manipulate origins (object, pose and weight paint mode only)"); | prop, "Only Origins", "Manipulate origins (object, pose and weight paint mode only)"); | ||||
| RNA_def_property_ui_icon(prop, ICON_CENTER_ONLY, 0); | RNA_def_property_ui_icon(prop, ICON_CENTER_ONLY, 0); | ||||
| RNA_def_property_update(prop, NC_SCENE, NULL); | RNA_def_property_update(prop, NC_SCENE, NULL); | ||||
| prop = RNA_def_property(srna, "use_mesh_automerge", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mesh_automerge", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "automerge", 0); | RNA_def_property_boolean_sdna(prop, NULL, "automerge", AUTO_MERGE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Auto Merge", "Automatically merge vertices moved to the same location"); | prop, "Auto Merge Vertices", "Automatically merge vertices moved to the same location"); | ||||
| RNA_def_property_ui_icon(prop, ICON_AUTOMERGE_OFF, 1); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_mesh_automerge_split_edges", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "automerge", AUTO_MERGE_SPLIT_EDGES); | |||||
| RNA_def_property_ui_text(prop, "Split Edges", "Automatically split edges"); | |||||
| RNA_def_property_ui_icon(prop, ICON_AUTOMERGE_OFF, 1); | RNA_def_property_ui_icon(prop, ICON_AUTOMERGE_OFF, 1); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | ||||
| prop = RNA_def_property(srna, "use_snap", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_snap", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP); | RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP); | ||||
| RNA_def_property_ui_text(prop, "Snap", "Snap during transform"); | RNA_def_property_ui_text(prop, "Snap", "Snap during transform"); | ||||
| RNA_def_property_ui_icon(prop, ICON_SNAP_OFF, 1); | RNA_def_property_ui_icon(prop, ICON_SNAP_OFF, 1); | ||||
| 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 4,703 Lines • Show Last 20 Lines | |||||