Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_tools.c
| Show First 20 Lines • Show All 7,575 Lines • ▼ Show 20 Lines | void MESH_OT_point_normals(struct wmOperatorType *ot) | ||||
| ot->prop = RNA_def_enum(ot->srna, "mode", clnors_pointto_mode_items, EDBM_CLNOR_POINTTO_MODE_COORDINATES, | ot->prop = RNA_def_enum(ot->srna, "mode", clnors_pointto_mode_items, EDBM_CLNOR_POINTTO_MODE_COORDINATES, | ||||
| "Mode", "How to define coordinates to point custom normals to"); | "Mode", "How to define coordinates to point custom normals to"); | ||||
| RNA_def_property_flag(ot->prop, PROP_HIDDEN); | RNA_def_property_flag(ot->prop, PROP_HIDDEN); | ||||
| RNA_def_boolean(ot->srna, "invert", false, "Invert", "Invert affected normals"); | RNA_def_boolean(ot->srna, "invert", false, "Invert", "Invert affected normals"); | ||||
| RNA_def_boolean(ot->srna, "align", false, "Align", "Make all affected normals parallel"); | RNA_def_boolean(ot->srna, "align", false, "Align", "Make all affected normals parallel"); | ||||
| RNA_def_float_vector(ot->srna, "target_location", 3, NULL, -FLT_MAX, FLT_MAX, | RNA_def_float_vector_xyz(ot->srna, "target_location", 3, NULL, -FLT_MAX, FLT_MAX, | ||||
| "Target", "Target location to which normals will point", -1000.0f, 1000.0f); | "Target", "Target location to which normals will point", -1000.0f, 1000.0f); | ||||
| RNA_def_boolean(ot->srna, "spherize", false, | RNA_def_boolean(ot->srna, "spherize", false, | ||||
| "Spherize", "Interpolate between original and new normals"); | "Spherize", "Interpolate between original and new normals"); | ||||
| RNA_def_float(ot->srna, "spherize_strength", 0.1, 0.0f, 1.0f, | RNA_def_float(ot->srna, "spherize_strength", 0.1, 0.0f, 1.0f, | ||||
| "Spherize Strength", "Ratio of spherized normal to original normal", 0.0f, 1.0f); | "Spherize Strength", "Ratio of spherized normal to original normal", 0.0f, 1.0f); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 831 Lines • Show Last 20 Lines | |||||