Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 293130 | Differences between
and this patch

Collapse All | Expand All

(-)a/source/blender/src/buttons_script.c (-1 / +3 lines)
Lines 107-112 Link Here
107
#include "blendef.h"
107
#include "blendef.h"
108
#include "butspace.h"
108
#include "butspace.h"
109
109
110
extern int button_enable_script_links_enabled;
111
110
/* ************************ function prototypes ********************** */
112
/* ************************ function prototypes ********************** */
111
void draw_scriptlink(uiBlock *, ScriptLink *, int , int , int ) ;
113
void draw_scriptlink(uiBlock *, ScriptLink *, int , int , int ) ;
112
114
Lines 323-329 static void script_panel_scriptlink(void) Link Here
323
	block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win);
325
	block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win);
324
	if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return;
326
	if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return;
325
327
326
	uiDefButBitI(block, TOG, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT,
328
	uiDefButBitI(block, button_enable_script_links_enabled ? TOG : BUT, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT,
327
			"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0,
329
			"Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0,
328
			"Enable execution of all assigned Script links and Space Handelers");
330
			"Enable execution of all assigned Script links and Space Handelers");
329
	/* for proper alignment: */
331
	/* for proper alignment: */
(-)a/source/creator/creator.c (-1 / +4 lines)
Lines 108-113 Link Here
108
#include "binreloc.h"
108
#include "binreloc.h"
109
#endif
109
#endif
110
110
111
int button_enable_script_links_enabled = 0;
112
111
// from buildinfo.c
113
// from buildinfo.c
112
#ifdef BUILD_DATE
114
#ifdef BUILD_DATE
113
extern char * build_date;
115
extern char * build_date;
Lines 391-396 int main(int argc, char **argv) Link Here
391
393
392
		if (!strcmp(argv[a], "-666")){
394
		if (!strcmp(argv[a], "-666")){
393
			G.f |= G_DOSCRIPTLINKS;
395
			G.f |= G_DOSCRIPTLINKS;
396
			button_enable_script_links_enabled = 1;
394
		}
397
		}
395
398
396
		/* Handle -* switches */
399
		/* Handle -* switches */
Lines 412-417 int main(int argc, char **argv) Link Here
412
415
413
			case 'y':  /* NOTE: -y works the exact opposite way in version 2.57! */
416
			case 'y':  /* NOTE: -y works the exact opposite way in version 2.57! */
414
				G.f &= ~G_DOSCRIPTLINKS;
417
				G.f &= ~G_DOSCRIPTLINKS;
418
				button_enable_script_links_enabled = 0;
415
				break;
419
				break;
416
420
417
			case 'Y':
421
			case 'Y':
418
- 

Return to bug 293130