Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_extrude_spin.c
| Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | void MESH_OT_spin(wmOperatorType *ot) | ||||
| RNA_def_int(ot->srna, "steps", 9, 0, 1000000, "Steps", "Steps", 0, 1000); | RNA_def_int(ot->srna, "steps", 9, 0, 1000000, "Steps", "Steps", 0, 1000); | ||||
| RNA_def_boolean(ot->srna, "dupli", 0, "Dupli", "Make Duplicates"); | RNA_def_boolean(ot->srna, "dupli", 0, "Dupli", "Make Duplicates"); | ||||
| prop = RNA_def_float(ot->srna, "angle", DEG2RADF(90.0f), -1e12f, 1e12f, "Angle", "Rotation for each step", | prop = RNA_def_float(ot->srna, "angle", DEG2RADF(90.0f), -1e12f, 1e12f, "Angle", "Rotation for each step", | ||||
| DEG2RADF(-360.0f), DEG2RADF(360.0f)); | DEG2RADF(-360.0f), DEG2RADF(360.0f)); | ||||
| RNA_def_property_subtype(prop, PROP_ANGLE); | RNA_def_property_subtype(prop, PROP_ANGLE); | ||||
| RNA_def_boolean(ot->srna, "use_auto_merge", true, "Auto Merge", "Merge first/last when the angle is a full revolution"); | RNA_def_boolean(ot->srna, "use_auto_merge", true, "Auto Merge", "Merge first/last when the angle is a full revolution"); | ||||
| RNA_def_boolean(ot->srna, "use_normal_flip", 0, "Flip Normals", ""); | RNA_def_boolean(ot->srna, "use_normal_flip", 0, "Flip Normals", ""); | ||||
| RNA_def_float_vector(ot->srna, "center", 3, NULL, -1e12f, 1e12f, | RNA_def_float_vector_xyz(ot->srna, "center", 3, NULL, -1e12f, 1e12f, | ||||
| "Center", "Center in global view space", -1e4f, 1e4f); | "Center", "Center in global view space", -1e4f, 1e4f); | ||||
| RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, "Axis", "Axis in global view space", -1.0f, 1.0f); | RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, "Axis", "Axis in global view space", -1.0f, 1.0f); | ||||
| WM_gizmogrouptype_append(MESH_GGT_spin); | WM_gizmogrouptype_append(MESH_GGT_spin); | ||||
| #ifdef USE_GIZMO | #ifdef USE_GIZMO | ||||
| WM_gizmogrouptype_append(MESH_GGT_spin_redo); | WM_gizmogrouptype_append(MESH_GGT_spin_redo); | ||||
| #endif | #endif | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||