[Bf-taskforce25] 2.5 io scripts design
Brecht Van Lommel
brecht at blender.org
Fri Jun 19 13:19:20 CEST 2009
Hi,
I would move DupliObject into DNA_object_types.h. The other alternative
is to write manual get/set functions, but moving the data structure
seems reasonable in this case. For storing the duplilist in the object,
it seems easier to just create a ListBase in the Object struct? It
doesn't really help to do this using RNA functions, mostly seems to make
the code more complicated.
Brecht.
On Fri, 2009-06-19 at 16:41 +0600, Arystan Dyussenov wrote:
> I've committed changes to my branch.
>
> On Fri, Jun 19, 2009 at 4:25 PM, Arystan Dyussenov
> <arystan.d at gmail.com> wrote:
> Hi Brecht,
>
> I need your help.
>
> I've created a struct function to create duplilist for an
> object. It
> uses object_duplilist which returns a dynamically allocated
> list of
> DupliObjects. DupliObject struct I partially RNA-wrapped.
>
> But build fails with the following message:
> http://www.pasteall.org/6214/text
>
> Here's contents of rna_object_api.c:
> http://www.pasteall.org/6215/c
>
> Here's how I wrap DupliObject: http://www.pasteall.org/6216/c
>
> This is probably because DupliObject struct is defined in
> BKE_anim.h,
> not in DNA_*.h. What should I do?
>
> Arystan
>
> _______________________________________________
> Bf-taskforce25 mailing list
> Bf-taskforce25 at blender.org
> http://lists.blender.org/mailman/listinfo/bf-taskforce25
More information about the Bf-taskforce25
mailing list