bmesh python api:
[blender.git] / source / blender / bmesh / intern / bmesh_marking.c
index f05a75e74bf4df0cb784c6cf8ee6d4b487e581b7..4108d00fe7af141826b8cf5998015e02396269a2 100644 (file)
@@ -701,15 +701,17 @@ int BM_select_history_check(BMesh *bm, const BMElem *ele)
        return FALSE;
 }
 
        return FALSE;
 }
 
-void BM_select_history_remove(BMesh *bm, BMElem *ele)
+int BM_select_history_remove(BMesh *bm, BMElem *ele)
 {
        BMEditSelection *ese;
        for (ese = bm->selected.first; ese; ese = ese->next) {
                if (ese->ele == ele) {
                        BLI_freelinkN(&(bm->selected), ese);
 {
        BMEditSelection *ese;
        for (ese = bm->selected.first; ese; ese = ese->next) {
                if (ese->ele == ele) {
                        BLI_freelinkN(&(bm->selected), ese);
-                       break;
+                       return TRUE;
                }
        }
                }
        }
+
+       return FALSE;
 }
 
 void BM_select_history_clear(BMesh *bm)
 }
 
 void BM_select_history_clear(BMesh *bm)