Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_bisect.c
| Show First 20 Lines • Show All 398 Lines • ▼ Show 20 Lines | void MESH_OT_bisect(struct wmOperatorType *ot) | ||||
| ot->modal = mesh_bisect_modal; | ot->modal = mesh_bisect_modal; | ||||
| ot->cancel = WM_gesture_straightline_cancel; | ot->cancel = WM_gesture_straightline_cancel; | ||||
| ot->poll = ED_operator_editmesh; | ot->poll = ED_operator_editmesh; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| prop = RNA_def_float_vector(ot->srna, "plane_co", 3, NULL, -1e12f, 1e12f, | prop = RNA_def_float_vector_xyz(ot->srna, "plane_co", 3, NULL, -1e12f, 1e12f, | ||||
| "Plane Point", "A point on the plane", -1e4f, 1e4f); | "Plane Point", "A point on the plane", -1e4f, 1e4f); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| prop = RNA_def_float_vector(ot->srna, "plane_no", 3, NULL, -1.0f, 1.0f, | prop = RNA_def_float_vector(ot->srna, "plane_no", 3, NULL, -1.0f, 1.0f, | ||||
| "Plane Normal", "The direction the plane points", -1.0f, 1.0f); | "Plane Normal", "The direction the plane points", -1.0f, 1.0f); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| RNA_def_boolean(ot->srna, "use_fill", false, "Fill", "Fill in the cut"); | RNA_def_boolean(ot->srna, "use_fill", false, "Fill", "Fill in the cut"); | ||||
| RNA_def_boolean(ot->srna, "clear_inner", false, "Clear Inner", "Remove geometry behind the plane"); | RNA_def_boolean(ot->srna, "clear_inner", false, "Clear Inner", "Remove geometry behind the plane"); | ||||
| RNA_def_boolean(ot->srna, "clear_outer", false, "Clear Outer", "Remove geometry in front of the plane"); | RNA_def_boolean(ot->srna, "clear_outer", false, "Clear Outer", "Remove geometry in front of the plane"); | ||||
| ▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines | |||||