Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_rip.c
| Context not available. | |||||
| bool no_vertex_selected = true; | bool no_vertex_selected = true; | ||||
| bool error_face_selected = true; | bool error_face_selected = true; | ||||
| bool error_disconected_vertices = true; | bool error_disconnected_vertices = true; | ||||
| bool error_rip_failed = true; | bool error_rip_failed = true; | ||||
| for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| Context not available. | |||||
| if ((bm->totvertsel > 1) && (bm->totedgesel == 0)) { | if ((bm->totvertsel > 1) && (bm->totedgesel == 0)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| error_disconected_vertices = false; | error_disconnected_vertices = false; | ||||
| /* note on selection: | /* note on selection: | ||||
| * When calling edge split we operate on tagged edges rather then selected | * When calling edge split we operate on tagged edges rather then selected | ||||
| Context not available. | |||||
| BKE_report(op->reports, RPT_ERROR, "Cannot rip selected faces"); | BKE_report(op->reports, RPT_ERROR, "Cannot rip selected faces"); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| else if (error_disconected_vertices) { | else if (error_disconnected_vertices) { | ||||
| BKE_report(op->reports, RPT_ERROR, "Cannot rip multiple disconnected vertices"); | BKE_report(op->reports, RPT_ERROR, "Cannot rip multiple disconnected vertices"); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| Context not available. | |||||