Fixed crash in iter api, triggered by calling index_update() on the loop py seq in...
authorJoseph Eagar <joeedh@gmail.com>
Thu, 19 Apr 2012 21:14:11 +0000 (21:14 +0000)
committerJoseph Eagar <joeedh@gmail.com>
Thu, 19 Apr 2012 21:14:11 +0000 (21:14 +0000)
source/blender/bmesh/intern/bmesh_iterators_inline.h

index 57f0da4081b9c3f966fef4c5ab23673ff7658760..5b5da53f8428642d43d18ae02f79379dedf40d54 100644 (file)
@@ -161,10 +161,12 @@ BLI_INLINE int BM_iter_init(BMIter *iter, BMesh *bm, const char itype, void *dat
                        iter->edata = data;
                        break;
                default:
+                       return FALSE;
                        break;
        }
-
+       
        iter->begin(iter);
+
        return TRUE;
 }