Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2012-04-20 01:14:11 +0400
committerJoseph Eagar <joeedh@gmail.com>2012-04-20 01:14:11 +0400
commitebbfcd71e5ea35a64759ecbf9bc0f34d582a6bde (patch)
tree2f8c11569ad2f43f41da56fc9104e07dbced8479 /source/blender/bmesh
parent417117e20753baa2a2b69dd305e989855889393d (diff)
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).
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_iterators_inline.h4
1 files changed, 3 insertions, 1 deletions
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;
}