From ebbfcd71e5ea35a64759ecbf9bc0f34d582a6bde Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Thu, 19 Apr 2012 21:14:11 +0000 Subject: [PATCH] Fixed crash in iter api, triggered by calling index_update() on the loop py seq in the py api. Note, I didn't fix the underlying problem (bad iter type) so loops.index_update() still isn't working (it's just not crashing). --- source/blender/bmesh/intern/bmesh_iterators_inline.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/bmesh/intern/bmesh_iterators_inline.h b/source/blender/bmesh/intern/bmesh_iterators_inline.h index 57f0da4081b..5b5da53f842 100644 --- a/source/blender/bmesh/intern/bmesh_iterators_inline.h +++ b/source/blender/bmesh/intern/bmesh_iterators_inline.h @@ -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; }