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,394 Lines • ▼ Show 20 Lines | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| 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_selectable", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_snap_selectable", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_TO_ONLY_SELECTABLE); | RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_TO_ONLY_SELECTABLE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Snap onto Selectable Only", "Snap only onto objects that are selectable"); | prop, "Snap onto Selectable Only", "Snap only onto objects that are selectable"); | ||||
| 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_retopology_mode", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_RETOPOLOGY_MODE); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Retopology Target Mode", | |||||
| "Snap grabbed geometry to vertices and edges of edited objects (if " | |||||
| "enabled) and to faces of non-edited objects (if enabled)"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_snap_translate", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_snap_translate", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna( | RNA_def_property_boolean_sdna( | ||||
| prop, NULL, "snap_transform_mode_flag", SCE_SNAP_TRANSFORM_MODE_TRANSLATE); | prop, NULL, "snap_transform_mode_flag", SCE_SNAP_TRANSFORM_MODE_TRANSLATE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Use Snap for Translation", "Move is affected by snapping settings"); | prop, "Use Snap for Translation", "Move is affected by snapping settings"); | ||||
| 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_rotate", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_snap_rotate", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 4,871 Lines • Show Last 20 Lines | |||||