Exemplo n.º 1
0
static int find_missing_files_exec(bContext *C, wmOperator *op)
{
	Main *bmain= CTX_data_main(C);
	const char *searchpath= RNA_string_get_alloc(op->ptr, "filepath", NULL, 0);
	findMissingFiles(bmain, searchpath, op->reports);
	MEM_freeN((void *)searchpath);

	return OPERATOR_FINISHED;
}
Exemplo n.º 2
0
static int find_missing_files_exec(bContext *UNUSED(C), wmOperator *op)
{
	char *path;
	
	path= RNA_string_get_alloc(op->ptr, "filepath", NULL, 0);
	findMissingFiles(G.main, path);
	MEM_freeN(path);

	return OPERATOR_FINISHED;
}