style fixes

This commit is contained in:
2016-09-11 02:25:43 +07:00
parent 8ddb0d2bcb
commit f068463454
2 changed files with 2 additions and 5 deletions

View File

@@ -152,6 +152,7 @@ namespace FlashTools.Internal {
clip_asset.FrameRate = asset.Data.FrameRate;
clip_asset.Sequences = LoadClipSequences(asset, symbol);
ConfigureClipSubAssets(clip_asset);
EditorUtility.SetDirty(clip_asset);
asset.Clips.Add(clip_asset);
}

View File

@@ -26,11 +26,7 @@ namespace FlashTools.Internal {
static void SwfFileProcess(string swf_path) {
var swf_asset_path = Path.ChangeExtension(swf_path, ".asset");
var swf_asset = AssetDatabase.LoadAssetAtPath<SwfAsset>(swf_asset_path);
if ( !swf_asset ) {
swf_asset = ScriptableObject.CreateInstance<SwfAsset>();
AssetDatabase.CreateAsset(swf_asset, swf_asset_path);
}
var swf_asset = SwfEditorUtils.LoadOrCreateAsset<SwfAsset>(swf_asset_path);
if ( LoadSwfAsset(swf_path, swf_asset) ) {
EditorUtility.SetDirty(swf_asset);
AssetDatabase.SaveAssets();