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,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to