From c6b96c241be073bd72d083391f1f240c0867a59a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Sep 2014 12:12:25 +1000 Subject: Vert-rip left an invalid selection with (>1 verts) Now report the error and fail early. --- source/blender/editors/mesh/editmesh_rip.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/mesh/editmesh_rip.c') diff --git a/source/blender/editors/mesh/editmesh_rip.c b/source/blender/editors/mesh/editmesh_rip.c index 3d3e41d31cc..3b993332db0 100644 --- a/source/blender/editors/mesh/editmesh_rip.c +++ b/source/blender/editors/mesh/editmesh_rip.c @@ -993,6 +993,12 @@ static int edbm_rip_invoke(bContext *C, wmOperator *op, const wmEvent *event) return OPERATOR_CANCELLED; } + /* we could support this, but not for now */ + if ((bm->totvertsel > 1) && (bm->totedgesel == 0)) { + BKE_report(op->reports, RPT_ERROR, "Cannot rip multiple disconnected vertices"); + return OPERATOR_CANCELLED; + } + /* note on selection: * When calling edge split we operate on tagged edges rather then selected * this is important because the edges to operate on are extended by one, -- cgit v1.2.3