[Bf-committers] MSVC compile error in keyframing.c

Dalai Felinto dfelinto at gmail.com
Sun Sep 14 21:03:20 CEST 2008


Here I needed to change all the instances of {} in order to make it compile.

http://pasteall.org/2414/diff

Thanks for the direction Andrea,

Cheers,
Dalai

2008/9/14 Andrea Weikert <andrea at aweikert.de>:
> Hi,
>
> There is a compilation issue with MSVC in latest trunk in keyframing.c
> (Aligorith, I think this is probably your area to check)
>
> MSVC chokes over the initialisation of the struct bKeyingSet, namely the
> initialisation of the adrcodes member.
>
> Here is the part of the code, where I get a syntax error with MSVC:
>
> bKeyingSet defks_v3d_object[] =
> {
>        /* include_cb, name, blocktype, flag, chan_num, adrcodes */
>        {NULL, "Loc", ID_OB, 0, 3, {OB_LOC_X,OB_LOC_Y,OB_LOC_Z}},
>
>        {NULL, "%l", 0, -1, 0, {}}, // separator  <<<---- not OK
>
>        {NULL, "%l", 0, -1, 0, {0} }, // separator <<<--- OK
>
>        {NULL, "VisualLoc", ID_OB, INSERTKEY_MATRIX, 3,
>                                  {OB_LOC_X,OB_LOC_Y,OB_LOC_Z}}
> }
>
> The line where it says OK is my attempt to fix that passes through MSVC,
> please review and either commit fix or confirm that my fix is fine and
> I'll commit.
>
> - Andrea
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list