Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
| Context not available. | |||||
| * - link all LibBlocks and indirect pointers to libblocks | * - link all LibBlocks and indirect pointers to libblocks | ||||
| * - initialize #FileGlobal and copy pointers to #Global | * - initialize #FileGlobal and copy pointers to #Global | ||||
| * | * | ||||
| * \note Still a weak point is the new-address function, that doesnt solve reading from | * \note Still a weak point is the new-address function, that doesn't solve reading from | ||||
| * multiple files at the same time. | * multiple files at the same time. | ||||
| * (added remark: oh, i thought that was solved? will look at that... (ton). | * (added remark: oh, i thought that was solved? will look at that... (ton). | ||||
| */ | */ | ||||
| Context not available. | |||||
| array = (IDProperty *)prop->data.pointer; | array = (IDProperty *)prop->data.pointer; | ||||
| /* note!, idp-arrays didn't exist in 2.4x, so the pointer will be cleared | /* note!, idp-arrays didn't exist in 2.4x, so the pointer will be cleared | ||||
| * theres not really anything we can do to correct this, at least don't crash */ | * there's not really anything we can do to correct this, at least don't crash */ | ||||
| if (array == NULL) { | if (array == NULL) { | ||||
| prop->len = 0; | prop->len = 0; | ||||
| prop->totallen = 0; | prop->totallen = 0; | ||||
| Context not available. | |||||
| link_list(fd, &ar->ui_previews); | link_list(fd, &ar->ui_previews); | ||||
| if (spacetype == SPACE_EMPTY) { | if (spacetype == SPACE_EMPTY) { | ||||
| /* unkown space type, don't leak regiondata */ | /* unknown space type, don't leak regiondata */ | ||||
| ar->regiondata = NULL; | ar->regiondata = NULL; | ||||
| } | } | ||||
| else if (ar->flag & RGN_FLAG_TEMP_REGIONDATA) { | else if (ar->flag & RGN_FLAG_TEMP_REGIONDATA) { | ||||
| Context not available. | |||||