Merge with 2.5 -r 21619:21756.
[blender-staging.git] / source / blender / makesrna / intern / rna_define.c
index 491095a0bd6e6c2dc66ac4c0c9f0648c6d62db8b..6f52c3c8588a6cee396f2b8ab9fd67311ed208d3 100644 (file)
@@ -2238,6 +2238,8 @@ int rna_parameter_size(PropertyRNA *parm)
        PropertyType ptype= parm->type;
        int len= parm->arraylength;
 
+       if (parm->flag & PROP_DYNAMIC_ARRAY) return sizeof(void*);
+
        if(len > 0) {
                switch (ptype) {
                        case PROP_BOOLEAN: