public override void Perform(Resource obj)
{
// If we still have the original source files around, prefer them.
string[] importedPaths = AssetManager.GetAssetSourceFiles(obj);
if (importedPaths.Length > 0 && importedPaths.All(p => File.Exists(p)))
{
this.OpenPaths(importedPaths);
return;
}
// Otherwise, export the Resource and open the result.
string[] exportedPaths = AssetManager.ExportAssets(obj);
this.OpenPaths(exportedPaths);
}