[Bf-committers] makesdna problem?
Ton Roosendaal
ton at blender.org
Sat Oct 30 11:46:44 CEST 2004
Hi,
Makesdna complains here all the time, dunno why it didn't in this
case... you can simply test it by adding 1 byte to a random struct.
Might be a makefile issue though, with a dependency missing for check
on standard includes.
-Ton-
On 30 Oct, 2004, at 1:48, Alexander Ewering wrote:
>
> Hello,
>
> I've recently added a 'struct Layer { blah } Layer;' to
> DNA_scene_types.h,
> and 'Layer layers[20];' to struct Scene. I was a bit irritated that
> makesdna didn't complain about the odd size of "struct Layer", which
> is 137 bytes.
>
> I subsequently got into trouble with saving/retrieving scenes, too.
>
> Shouldn't makesdna have detected the odd size and issued an error?
>
> I added 3 pad chars to the struct, and now everything's fine.
>
>
> | alexander ewering instinctive mediaworks
> | ae[@]instinctive[.]de http://www[.]instinctive[.]de
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
------------------------------------------------------------------------
--
Ton Roosendaal Blender Foundation ton at blender.org
http://www.blender.org
More information about the Bf-committers
mailing list