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>2004-10-31 23:18:14 +0300
committerTon Roosendaal <ton@blender.org>2004-10-31 23:18:14 +0300
commit1a49bf0c37dd2930c0049fc76c3b7ffb9e0fddb3 (patch)
tree8447b5049c91815a3ef375ca26408397440a68a3 /source/blender/blenloader
parent3e197898f76c7accad18c097a98064fa2b83c161 (diff)
Bug #1721
Crash reported on combo of append object, do global undo, and re-append same object. Appears to be an open filehandle...
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 9192a620025..89b4c77020e 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2732,7 +2732,9 @@ void lib_link_screen_restore(Main *newmain, char mode, Scene *curscene)
}
else if(sl->spacetype==SPACE_FILE) {
SpaceFile *sfile= (SpaceFile *)sl;
-
+ if(sfile->libfiledata)
+ BLO_blendhandle_close(sfile->libfiledata);
+ sfile->libfiledata= 0;
}
else if(sl->spacetype==SPACE_IMASEL) {
;