2.5: RNA, defining enums, pointers and collections properties is now
[blender.git] / source / blender / blenloader / intern / writefile.c
index cd388cdf9cc5256cfdb4a18a6a12ae86efcdb0c1..9d059af9887f0aacae539e277cc7f0d1fc1ce1ff 100644 (file)
@@ -407,13 +407,13 @@ static void IDP_WriteIDPArray(IDProperty *prop, void *wd)
 {
        /*REMEMBER to set totalen to len in the linking code!!*/
        if (prop->data.pointer) {
-               IDProperty **array = prop->data.pointer;
+               IDProperty *array = prop->data.pointer;
                int a;
 
-               writedata(wd, DATA, MEM_allocN_len(prop->data.pointer), prop->data.pointer);
+               writestruct(wd, DATA, "IDProperty", prop->len, array);
 
                for(a=0; a<prop->len; a++)
-                       IDP_WriteProperty(array[a], wd);
+                       IDP_WriteProperty_OnlyData(&array[a], wd);
        }
 }