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-02-09 22:20:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-09 22:20:12 +0300
commitf577c4bb7f3f69027d0fbc638f13a2c337fbdc2d (patch)
tree27d4ad248d7debd73f748e368571aff34bfc7480
parent82825d5c93e8f3dc601b2b8dc6225936f009784e (diff)
bugfix [#21057] Python: accessing DriverVariable targets causes segmentation violation
collections were detected as arrays.
-rw-r--r--source/blender/makesrna/intern/rna_define.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c
index 26aa6a94694..c3598401c9b 100644
--- a/source/blender/makesrna/intern/rna_define.c
+++ b/source/blender/makesrna/intern/rna_define.c
@@ -1703,6 +1703,7 @@ void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname,
else {
dp->dnalengthstructname= structname;
dp->dnalengthname= lengthpropname;
+ prop->totarraylength= 0;
}
cprop->next= (PropCollectionNextFunc)"rna_iterator_array_next";