From 4c5fcf136b510ddb2aeb9c1c9afbc155e95ce12c Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Fri, 17 Nov 2006 06:14:15 +0000 Subject: =ID Properties Update= This commit adds file reading/writing of ID properties to all ID types, and also adds python access for NMesh, Mesh, Scene and Image. Note that the file reading code might need some more work for certain future/planned features to save right. Also I updated a few comments in idprop.c. --- source/blender/blenkernel/intern/idprop.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source/blender/blenkernel/intern/idprop.c') diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c index ade4176eeac..66feaffadb7 100644 --- a/source/blender/blenkernel/intern/idprop.c +++ b/source/blender/blenkernel/intern/idprop.c @@ -64,13 +64,6 @@ void IDP_ResizeArray(IDProperty *prop, int newlen) prop->totallen = newsize; } -/*does NOT unlink anything!*/ -/*Ok, the way things work, Groups and List Arrays free the ID Property structs of their children. - - This is because all ID Property freeing functions free only direct data (not the ID Property - struct itself), but for Groups and List Arrays their child properties *are* considered - direct data. -*/ void IDP_FreeArray(IDProperty *prop) { if (prop->data.pointer) @@ -194,9 +187,9 @@ void IDP_FreeIterBeforeEnd(void *vself) MEM_freeN(vself); } -/*Ok, the way things work, Groups and List Arrays free the ID Property structs of their children. +/*Ok, the way things work, Groups free the ID Property structs of their children. This is because all ID Property freeing functions free only direct data (not the ID Property - struct itself), but for Groups and List Arrays their child properties *are* considered + struct itself), but for Groups the child properties *are* considered direct data.*/ void IDP_FreeGroup(IDProperty *prop) { -- cgit v1.2.3