fix multiple import

This commit is contained in:
2017-02-24 02:13:55 +07:00
parent 5012b53ac1
commit df364244b4
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
###### Version 1.3.7
* Fix multiple import
* Fix single frame optimization
###### Version 1.3.6

View File

@@ -24,8 +24,9 @@ namespace FTEditor.Postprocessors {
.Select(p => AssetDatabase.LoadAssetAtPath<SwfAsset>(p))
.Where(p => !!p);
foreach ( var asset in assets ) {
var asset_copy = asset;
EditorApplication.delayCall += () => {
SwfAssetProcess(asset);
SwfAssetProcess(asset_copy);
AssetDatabase.SaveAssets();
};
}

View File

@@ -32,8 +32,9 @@ namespace FTEditor.Postprocessors {
EditorUtility.DisplayDialog(title, message, "Ok");
} else {
foreach ( var swf_path in swf_paths ) {
var swf_path_copy = swf_path;
EditorApplication.delayCall += () => {
SwfFileProcess(swf_path);
SwfFileProcess(swf_path_copy);
AssetDatabase.SaveAssets();
};
}