[Bf-committers] Re: Internal renderer question (help)

Alexander Ewering blender at instinctive.de
Wed Oct 12 10:02:42 CEST 2005

On Wed, 12 Oct 2005, Trevor McDonell wrote:

> I'm still very new to blender, and haven't quite gotten on top of the code, 
> so a few more questions if I may...
> Objects seem to have dependency information, object->parent and such, (with 
> future reference to the dependency graph I hear is being worked on). So to 
> what extent does blender depend on this being intact, or can it be rebuilt if 
> if I manage to just send the raw object->data (etc), and append them to the 
> list of objects ( using BLI_addtail(...), yes?)

Well, object->parent (as well as most other similar things) are just
pointers... if you send this to another client, obviously the pointer
will be unusable there, unless you also send the *original* memory
locations of the object structs. Then, you could go through all of them and
search for one matching the original object->parent (etc) pointer.

Again, note that most of the data in the Object or Scene structs are
*just* pointers. The actual data is elsewhere.

> Additionally, could you give me a few more tips as to the sizes of these 
> arrays, which I assume will be stored as part of the Object struct?

They're linked lists, the size isn't stored. You have to walk through them
in order to find the number of elements.

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de

More information about the Bf-committers mailing list