Fix T65449: Rip wire edges show error even when it works
Thanks to @zeddb for finding the root cause.
This commit is contained in:
parent
101c3d4ce4
commit
0eb1cceea1
Notes:
blender-bot
2023-02-14 02:41:05 +01:00
Referenced by issue #65449, Blender 2.8 - rip vertices shows error message when more than one vertex is selected, function still work
|
@ -880,6 +880,7 @@ static int edbm_rip_invoke__edge(bContext *C, const wmEvent *event, Object *obed
|
|||
BMLoop *l;
|
||||
BMEdge *e_best;
|
||||
BMVert *v;
|
||||
const int totvert_orig = bm->totvert;
|
||||
const int totedge_orig = bm->totedge;
|
||||
float projectMat[4][4], fmval[3] = {event->mval[0], event->mval[1]};
|
||||
|
||||
|
@ -988,7 +989,7 @@ static int edbm_rip_invoke__edge(bContext *C, const wmEvent *event, Object *obed
|
|||
MEM_freeN(fill_uloop_pairs);
|
||||
}
|
||||
|
||||
if (totedge_orig == bm->totedge) {
|
||||
if ((totvert_orig == bm->totvert) && (totedge_orig == bm->totedge)) {
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue