[Bf-python] Object.link
Willian Padovani Germano
wgermano at ig.com.br
Sun Sep 14 06:12:03 CEST 2003
Replying to my own msg for the first time this month
From: "Willian Padovani Germano" <wgermano at ig.com.br>
> Object.New() should not create object data at all. It should create an
> object of the given type, update Blender where needed (like doing
> G.totlamp++ if type == Lamp) but *not* create object data. Then on
> obj.getData, if the pointer was NULL, we'd ask the user to create obdata
> first, then obj.link(obdata).
Or create the Blender object data in obj.getData, if the pointer was still
NULL there. This way we should have no compatibility issues at all : ).
--
Willian, wgermano at ig.com.br
More information about the Bf-python
mailing list