Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_extrude_spin.c
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | void MESH_OT_spin(wmOperatorType *ot) | ||||
| ot->poll = ED_operator_editmesh; | ot->poll = ED_operator_editmesh; | ||||
| ot->poll_property = edbm_spin_poll_property; | ot->poll_property = edbm_spin_poll_property; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| /* props */ | /* props */ | ||||
| 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, "Duplicate", "Make Duplicates"); | |||||
| prop = RNA_def_boolean(ot->srna, "dupli", 0, "Use Duplicates", ""); | |||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | |||||
| prop = RNA_def_float(ot->srna, | prop = RNA_def_float(ot->srna, | ||||
| "angle", | "angle", | ||||
| DEG2RADF(90.0f), | DEG2RADF(90.0f), | ||||
| -1e12f, | -1e12f, | ||||
| 1e12f, | 1e12f, | ||||
| "Angle", | "Angle", | ||||
| "Rotation for each step", | "Rotation for each step", | ||||
| DEG2RADF(-360.0f), | DEG2RADF(-360.0f), | ||||
| Show All 29 Lines | |||||