diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-04-14 17:09:08 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-04-14 17:09:08 +0400 |
commit | f8a29350ad386701a1c215ab6304352c655c6ae5 (patch) | |
tree | f20254ac6d01159f7b4c7bc3fe55aae7c6eb1b9c /source/blender/blenloader | |
parent | 6da7b60cd3394259d503e2280d59e48306c42fb2 (diff) |
Fix for bug #8957: undo lost scenes assigned to screens.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index d7bdb2e5b93..85620f0ee30 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3843,7 +3843,9 @@ void lib_link_screen_restore(Main *newmain, Scene *curscene) for(sc= newmain->screen.first; sc; sc= sc->id.next) { - sc->scene= curscene; + sc->scene= restore_pointer_by_name(newmain, (ID *)sc->scene, 1); + if(sc->scene==NULL) + sc->scene= curscene; sa= sc->areabase.first; while(sa) { |