*** tuhopuu2/source/blender/src/buttons_script.c	3 Apr 2004 15:27:48 -0000	1.1.1.2
--- tuhopuu2/source/blender/src/buttons_script.c	19 Jul 2004 23:08:35 -0000
***************
*** 190,196 ****
  		
  	case B_SCRIPT_ADD:
  	case B_SCRIPT_DEL:
! 		ob= OBACT;
  
  		if (ob && G.buts->scriptblock==ID_OB) {
  				script= &ob->scriptlink;
--- 190,196 ----
  		
  	case B_SCRIPT_ADD:
  	case B_SCRIPT_DEL:
! 		ob= 0;
  
  		if (ob && G.buts->scriptblock==ID_OB) {
  				script= &ob->scriptlink;
***************
*** 231,240 ****
  		strcpy(str, "FrameChanged%x 1|");
  		strcat(str, "Redraw%x 4|");
  		if (scene) {
! 			strcat(str, "OnLoad%x 2");
  		}
  
! 		uiDefButS(block, MENU, 1, str, (short)sx, (short)sy, 140, 19, &script->flag[script->actscript-1], 0, 0, 0, 0, "Script links for the Frame changed event");
  
  		uiDefIDPoinBut(block, test_scriptpoin_but, 1, "", (short)(sx+140),(short)sy, 140, 19, &script->scripts[script->actscript-1], "Name of Script to link");
  	}
--- 231,241 ----
  		strcpy(str, "FrameChanged%x 1|");
  		strcat(str, "Redraw%x 4|");
  		if (scene) {
! 			strcat(str, "OnLoad%x 2|");
! 			strcat(str, "OnSave%x 8");
  		}
  
! 		uiDefButS(block, MENU, 1, str, (short)sx, (short)sy, 140, 19, &script->flag[script->actscript-1], 0, 0, 0, 0, "Script links.");
  
  		uiDefIDPoinBut(block, test_scriptpoin_but, 1, "", (short)(sx+140),(short)sy, 140, 19, &script->scripts[script->actscript-1], "Name of Script to link");
  	}
