All pastes #17005 Raw Edit

Someone

public c v1 · immutable
#17005 ·published 2005-07-06 02:03 UTC
rendered paste body
"/src/buttons_shading.c"	case B_NAMEPYTEX:					/*PYTEX*/		if(tex==0 || tex->text==0) return;		printf("1");		free_pytex_tex(tex->text);		printf("2");		tex->stype = 0;		printf("3");		tex->text = add_pytex_tex(str);		printf("4");		allqueue(REDRAWBUTSSHADING, 0);		BIF_all_preview_changed();		break;"/blenkernel/intern/texture.c"Text *add_pytex_tex(char *str)					/*PYTEX*/{	Text *text;	printf(str);	//text = MEM_callocN(sizeof(Text), "text");	printf("calling add_text");	text = add_text(str);	/*text->name = MEM_mallocN(strlen(str), "pytex_tex_name");	strcpy(text->name, str);*/	printf(text->name);	return text;}