[Bf-blender-cvs] [c6b96c2] master: Vert-rip left an invalid selection with (>1 verts)

Campbell Barton noreply at git.blender.org
Thu Sep 4 04:17:17 CEST 2014


Commit: c6b96c241be073bd72d083391f1f240c0867a59a
Author: Campbell Barton
Date:   Thu Sep 4 12:12:25 2014 +1000
Branches: master
https://developer.blender.org/rBc6b96c241be073bd72d083391f1f240c0867a59a

Vert-rip left an invalid selection with (>1 verts)

Now report the error and fail early.

===================================================================

M	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 3d3e41d..3b99333 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,




More information about the Bf-blender-cvs mailing list