Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-01-05 17:12:07 +0300
committerTon Roosendaal <ton@blender.org>2006-01-05 17:12:07 +0300
commit465ff56d96a46e1dea60632ca271fe084fc8b644 (patch)
treeb63a449a0026e1562a51594eab83213755657782 /source/blender/blenloader/intern/readblenentry.c
parent283b0ff7360a45077b173b653833e6310fa6f4b5 (diff)
Orange: Ack! Yesterday's commit to cleanup relative paths forgot to
change the undo code as well... so on any Undo/redo all the libraries got lost!
Diffstat (limited to 'source/blender/blenloader/intern/readblenentry.c')
-rw-r--r--source/blender/blenloader/intern/readblenentry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readblenentry.c b/source/blender/blenloader/intern/readblenentry.c
index faff6b0b840..2da43013318 100644
--- a/source/blender/blenloader/intern/readblenentry.c
+++ b/source/blender/blenloader/intern/readblenentry.c
@@ -288,13 +288,14 @@ BlendFileData *BLO_read_from_memory(void *mem, int memsize, BlendReadError *erro
return bfd;
}
-BlendFileData *BLO_read_from_memfile(MemFile *memfile, BlendReadError *error_r)
+BlendFileData *BLO_read_from_memfile(const char *filename, MemFile *memfile, BlendReadError *error_r)
{
BlendFileData *bfd = NULL;
FileData *fd;
fd = blo_openblendermemfile(memfile, error_r);
if (fd) {
+ strcpy(fd->filename, filename);
bfd= blo_read_file_internal(fd, error_r);
if (bfd) {
bfd->type= BLENFILETYPE_BLEND;