mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-16 14:11:19 +07:00
style fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user