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:
authorCampbell Barton <ideasman42@gmail.com>2010-11-29 03:18:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-29 03:18:26 +0300
commitab713ee1f45f681ee27e3573dbfd373d9a105b20 (patch)
treedba6dd56c39e78fcda450a98d8a835abbc434f56
parent2dcec226277910160caddf5670b2a6637b7e3ff8 (diff)
fix [#24921] Crash after inserting keyframing UV coords and changing frame in edit mode
zero length arrays were still having their members accessible.
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 1cac7aefdfa..db8710aec2a 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -2794,6 +2794,10 @@ void rna_iterator_array_begin(CollectionPropertyIterator *iter, void *ptr, int i
if(ptr == NULL)
length= 0;
+ else if (length == 0) {
+ ptr= NULL;
+ itemsize= 0;
+ }
internal= MEM_callocN(sizeof(ArrayIterator), "ArrayIterator");
internal->ptr= ptr;