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,938 Lines • ▼ Show 20 Lines | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_SCENE, NULL); | RNA_def_property_update(prop, NC_SCENE, NULL); | ||||
| prop = RNA_def_property(srna, "use_transform_data_origin", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform_data_origin", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_DATA_ORIGIN); | RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_DATA_ORIGIN); | ||||
| RNA_def_property_ui_text(prop, "Data Origins", "Manipulate object data"); | RNA_def_property_ui_text(prop, "Data Origins", "Manipulate object data"); | ||||
| 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_and_split", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "automerge", AUTO_MERGE_AND_SPLIT); | |||||
| RNA_def_property_ui_text(prop, "Split Edges & Faces", "Automatically split edges and faces"); | |||||
| 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 | |||||