Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
| Context not available. | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "snap_flag", SCE_SNAP_NO_SELF); | RNA_def_property_boolean_negative_sdna(prop, NULL, "snap_flag", SCE_SNAP_NO_SELF); | ||||
| RNA_def_property_ui_text(prop, "Project onto Self", "Snap onto itself (Edit Mode Only)"); | RNA_def_property_ui_text(prop, "Project onto Self", "Snap onto itself (Edit Mode Only)"); | ||||
| 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_force_increment_move", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "snap_force_increment_flag", SCE_SNAP_FORCE_INCREMENT_MOVE); | |||||
| RNA_def_property_ui_text(prop, "Resctrict Move", | |||||
| "Controls if move should be affected by the snapping modes, when turned off falls back to increment snapping"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_snap_force_increment_rotate", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "snap_force_increment_flag", SCE_SNAP_FORCE_INCREMENT_ROTATE); | |||||
| RNA_def_property_boolean_default(prop, false); | |||||
| RNA_def_property_ui_text(prop, "Resctrict Rotate", | |||||
| "Controls if rotate should be affected by the snapping modes, when turned off falls back to increment snapping"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_snap_force_increment_scale", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "snap_force_increment_flag", SCE_SNAP_FORCE_INCREMENT_SCALE); | |||||
| RNA_def_property_boolean_default(prop, false); | |||||
| RNA_def_property_ui_text(prop, "Resctrict Scale", | |||||
| "Controls if scale should be affected by the snapping modes, when turned off falls back to increment snapping"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_gizmo_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "use_gizmo_mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "gizmo_flag"); | RNA_def_property_enum_sdna(prop, NULL, "gizmo_flag"); | ||||
| Context not available. | |||||