From 34aa59c5c3739e7fd96e0e68558540c0dec285cf Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 18 Sep 2004 18:34:50 +0000 Subject: - redo now also ctrl+y. - made undo/redo display of previewrender nice --- source/blender/blenloader/intern/readfile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index f75af94ea4f..697f281a948 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2569,7 +2569,7 @@ static void lib_link_screen(FileData *fd, Main *main) if(v3d->bgpic) { v3d->bgpic->ima= newlibadr_us(fd, sc->id.lib, v3d->bgpic->ima); v3d->bgpic->tex= newlibadr_us(fd, sc->id.lib, v3d->bgpic->tex); - v3d->bgpic->rect= 0; + v3d->bgpic->rect= NULL; } if(v3d->localvd) { v3d->localvd->camera= newlibadr(fd, sc->id.lib, v3d->localvd->camera); @@ -2712,8 +2712,7 @@ void lib_link_screen_restore(Main *newmain, char mode, Scene *curscene) else if(sl->spacetype==SPACE_BUTS) { SpaceButs *sbuts= (SpaceButs *)sl; sbuts->lockpoin= NULL; - if(sbuts->rect) MEM_freeN(sbuts->rect); - sbuts->rect= NULL; + sbuts->cury= 0; // we leave rect, for nicer redraws } else if(sl->spacetype==SPACE_FILE) { SpaceFile *sfile= (SpaceFile *)sl; -- cgit v1.2.3