[Bf-committers] 64-bit bug loading .blend file containing
scriptlinks
Ken Hughes
khughes at pacific.edu
Sat Nov 19 19:11:03 CET 2005
Ton Roosendaal wrote:
> Hi,
>
>> static void write_scriptlink(WriteData *wd, ScriptLink *slink)
>> {
>> writedata(wd, DATA, sizeof(void *)*slink->totscript,
>> slink->scripts);
>> writedata(wd, DATA, sizeof(short)*slink->totscript, slink->flag);
>> }
>>
>> the slink->script is written based on the structure, which is an
>> array of pointers. It reads this in again on load, but again assumes
>> it's
>> an array of 64-bit pointers when it's used.
>
> Ahh.. it is written as a pointer array, that needs separate handling in
> reading files.
> I've committed the fix, thanks!
>
> -Ton-
>
> BTW; if you've got time, check all pointer arrays written, and if they
> get read OK (see diff of last commit) :)
Ah, good; now I know what to look for and what it should be doing. :)
Ken
More information about the Bf-committers
mailing list