[Bf-taskforce25] 2.5 branch temporary UNSAFE!

Ton Roosendaal ton at blender.org
Sat Jan 17 16:02:20 CET 2009


Hi,

Warning; Joshuas commit will make reading files with Actions go 
horrible wrong.
Do not attempt even, nor save such files. Should be fixed tomorrow.

Joshua: if you want nAction to reside next to bAction, for conversions, 
you have to give nAction an own unique ID (DNA_ID.h), and add it to the 
Main (BKE_main.h), and make sure library lists recognize it 
(library.c:set_listbasepointers), and it can be found 
(library.c:which_libbase), allocated (library.c:alloc_libblock_notest) 
and freed (library.c: free_libblock).

Also readfile.c should get this, and so on...

I also noticed in your new code that freeing memory is not 100% 
failsafe... you should tag functions clearly whether or not they're 
supposed to free the data itself, and if not, always leave the pointers 
after free NULL. Do not free lists without a BLI_remlink()!

-Ton-

------------------------------------------------------------------------
Ton Roosendaal  Blender Foundation   ton at blender.org    www.blender.org
Blender Institute BV  Entrepotdok 57A  1018AD Amsterdam The Netherlands



More information about the Bf-taskforce25 mailing list