Improved UI

This commit is contained in:
Perfare
2019-08-06 17:43:51 +08:00
parent 465c989e75
commit 5704813b28
7 changed files with 249 additions and 163 deletions

View File

@ -334,5 +334,19 @@ namespace AssetStudioGUI
ModelExporter.ExportFbx(exportPath, convert, eulerFilter, filterPrecision,
exportAllNodes, exportSkins, exportAnimations, exportBlendShape, castToBone, boneSize, scaleFactor, fbxVersion, fbxFormat == 1);
}
public static bool ExportDumpFile(AssetItem item, string exportPath)
{
var exportFullName = exportPath + item.Text + ".txt";
if (ExportFileExists(exportFullName))
return false;
var str = item.Asset.Dump();
if (str != null)
{
File.WriteAllText(exportFullName, str);
return true;
}
return false;
}
}
}