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!
This commit is contained in:
Ton Roosendaal 2005-10-27 13:56:41 +00:00
parent 00d643091c
commit 44a9e0538e

@ -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; a<SCREEN_MAXHANDLER; a+=2) {
if( sc->handler[a]==SCREEN_HANDLER_VERSE) {
sc->handler[a]= 0;
break;
}
}
/* edges */
se= sc->edgebase.first;
while(se) {