mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-03-22 12:55:32 +07:00
fix multiple import
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
###### Version 1.3.7
|
||||
* Fix multiple import
|
||||
* Fix single frame optimization
|
||||
|
||||
###### Version 1.3.6
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user