Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_select.c
| Show First 20 Lines • Show All 700 Lines • ▼ Show 20 Lines | #endif | ||||
| {SIMFACE_MATERIAL, "MATERIAL", 0, "Material", ""}, | {SIMFACE_MATERIAL, "MATERIAL", 0, "Material", ""}, | ||||
| {SIMFACE_IMAGE, "IMAGE", 0, "Image", ""}, | {SIMFACE_IMAGE, "IMAGE", 0, "Image", ""}, | ||||
| {SIMFACE_AREA, "AREA", 0, "Area", ""}, | {SIMFACE_AREA, "AREA", 0, "Area", ""}, | ||||
| {SIMFACE_SIDES, "SIDES", 0, "Polygon Sides", ""}, | {SIMFACE_SIDES, "SIDES", 0, "Polygon Sides", ""}, | ||||
| {SIMFACE_PERIMETER, "PERIMETER", 0, "Perimeter", ""}, | {SIMFACE_PERIMETER, "PERIMETER", 0, "Perimeter", ""}, | ||||
| {SIMFACE_NORMAL, "NORMAL", 0, "Normal", ""}, | {SIMFACE_NORMAL, "NORMAL", 0, "Normal", ""}, | ||||
| {SIMFACE_COPLANAR, "COPLANAR", 0, "Co-planar", ""}, | {SIMFACE_COPLANAR, "COPLANAR", 0, "Co-planar", ""}, | ||||
| {SIMFACE_SMOOTH, "SMOOTH", 0, "Flat/Smooth", ""}, | |||||
| #ifdef WITH_FREESTYLE | #ifdef WITH_FREESTYLE | ||||
| {SIMFACE_FREESTYLE, "FREESTYLE_FACE", 0, "Freestyle Face Marks", ""}, | {SIMFACE_FREESTYLE, "FREESTYLE_FACE", 0, "Freestyle Face Marks", ""}, | ||||
| #endif | #endif | ||||
campbellbarton: Shading is too generic a term, would use `SMOOTH` | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| /* selects new faces/edges/verts based on the existing selection */ | /* selects new faces/edges/verts based on the existing selection */ | ||||
| static int similar_face_select_exec(bContext *C, wmOperator *op) | static int similar_face_select_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | else if (em->selectmode & SCE_SELECT_EDGE) { | ||||
| for (a = SIMEDGE_LENGTH; a < SIMFACE_MATERIAL; a++) { | for (a = SIMEDGE_LENGTH; a < SIMFACE_MATERIAL; a++) { | ||||
| RNA_enum_items_add_value(&item, &totitem, prop_similar_types, a); | RNA_enum_items_add_value(&item, &totitem, prop_similar_types, a); | ||||
| } | } | ||||
| } | } | ||||
| else if (em->selectmode & SCE_SELECT_FACE) { | else if (em->selectmode & SCE_SELECT_FACE) { | ||||
| #ifdef WITH_FREESTYLE | #ifdef WITH_FREESTYLE | ||||
| const int a_end = SIMFACE_FREESTYLE; | const int a_end = SIMFACE_FREESTYLE; | ||||
| #else | #else | ||||
| const int a_end = SIMFACE_COPLANAR; | const int a_end = SIMFACE_SMOOTH; | ||||
| #endif | #endif | ||||
| for (a = SIMFACE_MATERIAL; a <= a_end; a++) { | for (a = SIMFACE_MATERIAL; a <= a_end; a++) { | ||||
| RNA_enum_items_add_value(&item, &totitem, prop_similar_types, a); | RNA_enum_items_add_value(&item, &totitem, prop_similar_types, a); | ||||
| } | } | ||||
| } | } | ||||
| RNA_enum_item_end(&item, &totitem); | RNA_enum_item_end(&item, &totitem); | ||||
| *r_free = true; | *r_free = true; | ||||
| ▲ Show 20 Lines • Show All 2,618 Lines • Show Last 20 Lines | |||||
Shading is too generic a term, would use SMOOTH