From 53ae509cc5ad75dca490dea8c632d542285e0058 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 18 Jan 2009 10:41:45 +0000 Subject: 2.5 - AnimSys Data management stuff... * Removed nAction struct. We'll be using good ol' bAction structs again, but putting new data in a different list. Apart from that, the data is similar enough to do so. * Rearranged code in DNA_action_types.h while renaming the structs to avoid confusion over what is currently in use... * Added freeing and AnimData execution loops for many other ID-types too. (NOTE: I've added AnimData in NodeTree struct too, but it's not clear to me where the relevant data-management calls should go in Nodes code). * File writing code should now only write the new data to files --- source/blender/blenkernel/intern/world.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/world.c') diff --git a/source/blender/blenkernel/intern/world.c b/source/blender/blenkernel/intern/world.c index bd747bc1b61..7278460c61c 100644 --- a/source/blender/blenkernel/intern/world.c +++ b/source/blender/blenkernel/intern/world.c @@ -48,6 +48,7 @@ #include "BKE_utildefines.h" #include "BKE_library.h" +#include "BKE_animsys.h" #include "BKE_world.h" #include "BKE_global.h" #include "BKE_main.h" @@ -76,9 +77,7 @@ void free_world(World *wrld) } BKE_previewimg_free(&wrld->preview); -#if 0 // XXX old animation system - wrld->ipo= 0; -#endif // XXX old animation system + BKE_free_animdata((ID *)wrld); BKE_icon_delete((struct ID*)wrld); wrld->id.icon_id = 0; -- cgit v1.2.3