Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_ops.c
| Show First 20 Lines • Show All 648 Lines • ▼ Show 20 Lines | if (flags & P_SNAP) { | ||||
| if (flags & P_GEO_SNAP) { | if (flags & P_GEO_SNAP) { | ||||
| /* TODO(@gfxcoder): Rename `snap_target` to `snap_source` to avoid | /* TODO(@gfxcoder): Rename `snap_target` to `snap_source` to avoid | ||||
| * previous ambiguity of "target" (now, "source" is geometry to be moved and "target" is | * previous ambiguity of "target" (now, "source" is geometry to be moved and "target" is | ||||
| * geometry to which moved geometry is snapped). Use "Source snap point" and "Point on | * geometry to which moved geometry is snapped). Use "Source snap point" and "Point on | ||||
| * source that will snap to target" for name and description, respectively. */ | * source that will snap to target" for name and description, respectively. */ | ||||
| prop = RNA_def_enum(ot->srna, "snap_target", rna_enum_snap_source_items, 0, "Target", ""); | prop = RNA_def_enum(ot->srna, "snap_target", rna_enum_snap_source_items, 0, "Target", ""); | ||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| prop = RNA_def_boolean(ot->srna, | |||||
| "use_snap_retopology_mode", | |||||
| false, | |||||
| "Target: Retopology 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_flag(prop, PROP_HIDDEN); | |||||
| prop = RNA_def_float_vector( | prop = RNA_def_float_vector( | ||||
| ot->srna, "snap_point", 3, NULL, -FLT_MAX, FLT_MAX, "Point", "", -FLT_MAX, FLT_MAX); | ot->srna, "snap_point", 3, NULL, -FLT_MAX, FLT_MAX, "Point", "", -FLT_MAX, FLT_MAX); | ||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| if (flags & P_ALIGN_SNAP) { | if (flags & P_ALIGN_SNAP) { | ||||
| prop = RNA_def_boolean(ot->srna, "snap_align", 0, "Align with Point Normal", ""); | prop = RNA_def_boolean(ot->srna, "snap_align", 0, "Align with Point Normal", ""); | ||||
| RNA_def_property_flag(prop, PROP_HIDDEN); | RNA_def_property_flag(prop, PROP_HIDDEN); | ||||
| prop = RNA_def_float_vector( | prop = RNA_def_float_vector( | ||||
| ▲ Show 20 Lines • Show All 721 Lines • Show Last 20 Lines | |||||