2.5: RNA, defining enums, pointers and collections properties is now
[blender.git] / source / blender / blenkernel / intern / idprop.c
index 54366aadd92b6aa86b8a15e4583f310c27b68a77..3cff82f522a507c03037b3d52ac79abbd6c3d85d 100644 (file)
@@ -167,7 +167,7 @@ void IDP_ResizeIDPArray(IDProperty *prop, int newlen)
                for (i=newlen; i<prop->len; i++) {
                        IDP_FreeProperty(GETPROP(prop, i));
                }
-               memcpy(newarr, prop->data.pointer, newlen*prop->len*sizeof(IDProperty));
+               memcpy(newarr, prop->data.pointer, newlen*sizeof(IDProperty));
        }
 
        if(prop->data.pointer)