Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Snap Target", "Which part to snap onto the target"); | RNA_def_property_ui_text(prop, "Snap Target", "Which part to snap onto the target"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | ||||
| /* increment snapping mode options */ | |||||
| prop = RNA_def_property(srna, "use_snap_increment_mode_translate", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_increment_mode", SCE_SNAP_INCREMENT_TRANSLATE); | |||||
| RNA_def_property_ui_text(prop, "Move", ""); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_snap_increment_mode_rotate", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_increment_mode", SCE_SNAP_INCREMENT_ROTATE); | |||||
| RNA_def_property_ui_text(prop, "Rotate", ""); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_snap_increment_mode_scale", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_increment_mode", SCE_SNAP_INCREMENT_SCALE); | |||||
| RNA_def_property_ui_text(prop, "Scale", ""); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| prop = RNA_def_property(srna, "use_snap_increment_override", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_increment_mode", SCE_SNAP_INCREMENT_OVERRIDE); | |||||
| RNA_def_property_ui_text(prop, "Override Rotate & Scale", "Ignore the other snapping modes while rotating & scaling"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */ | |||||
| /*snapping target options*/ | |||||
| prop = RNA_def_property(srna, "use_snap_peel_object", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_snap_peel_object", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_PEEL_OBJECT); | RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_PEEL_OBJECT); | ||||
| RNA_def_property_ui_text(prop, "Snap Peel Object", "Consider objects as whole when finding volume center"); | RNA_def_property_ui_text(prop, "Snap Peel Object", "Consider objects as whole when finding volume center"); | ||||
| Context not available. | |||||