From 6b8dae0874d774888374992fc3923affb451c45a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 21 Jul 2009 20:05:16 +0000 Subject: RNA * ID blocks can now get RNA properties defined from python, e.g.: bpy.types.Scene.BoolProperty(..) * RNA structs/functions/properties can now get pointers duplicated (mostly strings), since we can't point to some static string then. * Added ExtensionRNA struct to add into *Type structs for subclassing, is a bit more compact than defining the 4 variables each time. Only disadvantage is it requires including RNA in more places. --- source/blender/blenkernel/intern/screen.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/blenkernel/intern/screen.c') diff --git a/source/blender/blenkernel/intern/screen.c b/source/blender/blenkernel/intern/screen.c index 4b6eddf60d0..d7aa38d5d03 100644 --- a/source/blender/blenkernel/intern/screen.c +++ b/source/blender/blenkernel/intern/screen.c @@ -61,16 +61,16 @@ static void spacetype_free(SpaceType *st) BLI_freelistN(&art->drawcalls); for(pt= art->paneltypes.first; pt; pt= pt->next) - if(pt->py_free) - pt->py_free(pt->py_data); + if(pt->ext.free) + pt->ext.free(pt->ext.data); for(ht= art->headertypes.first; ht; ht= ht->next) - if(ht->py_free) - ht->py_free(ht->py_data); + if(ht->ext.free) + ht->ext.free(ht->ext.data); for(mt= art->menutypes.first; mt; mt= mt->next) - if(mt->py_free) - mt->py_free(mt->py_data); + if(mt->ext.free) + mt->ext.free(mt->ext.data); BLI_freelistN(&art->paneltypes); BLI_freelistN(&art->headertypes); -- cgit v1.2.3