From 44a9e0538ed2f05b5ddf055794d1d897ec117875 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 27 Oct 2005 13:56:41 +0000 Subject: [PATCH] This is a bit a patch... unforseen issue with the new Screen Handlers. (Screen handler is used now to trigger animated screen). When files get saved with Verse_Blender, it has the verse handler set, which causes the handler system to run without a means to disable it with release versions of Blender. This patch disables the Verse Handler to be set on reading files. Jiri; you will have to uncomment this code when you sync it with your tree! --- source/blender/blenloader/intern/readfile.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 7634ec5559c..66b1ba43915 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2990,12 +2990,22 @@ static void direct_link_screen(FileData *fd, bScreen *sc) ScrVert *sv; ScrEdge *se; Oops *oops; - + int a; + link_list(fd, &(sc->vertbase)); link_list(fd, &(sc->edgebase)); link_list(fd, &(sc->areabase)); sc->winakt= 0; + /* hacky patch... but people have been saving files with the verse-blender, + causing the handler to keep running for ever, with no means to disable it */ + for(a=0; ahandler[a]==SCREEN_HANDLER_VERSE) { + sc->handler[a]= 0; + break; + } + } + /* edges */ se= sc->edgebase.first; while(se) {