bugfix [#21057] Python: accessing DriverVariable targets causes segmentation violation
authorCampbell Barton <ideasman42@gmail.com>
Tue, 9 Feb 2010 19:20:12 +0000 (19:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 9 Feb 2010 19:20:12 +0000 (19:20 +0000)
collections were detected as arrays.

source/blender/makesrna/intern/rna_define.c

index 26aa6a9..c359840 100644 (file)
@@ -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";