From dc77088885c20fed830bdc0d10b8d382ec1ae1ec Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Tue, 14 Feb 2017 20:12:41 +0700 Subject: [PATCH] Fix sprite import problem --- Assets/FlashTools/Docs/CHANGELOG.txt | 32 +++---------------- .../Postprocessors/SwfAssetPostprocessor.cs | 1 + ProjectSettings/GraphicsSettings.asset | 2 +- 3 files changed, 6 insertions(+), 29 deletions(-) diff --git a/Assets/FlashTools/Docs/CHANGELOG.txt b/Assets/FlashTools/Docs/CHANGELOG.txt index f72a7ea..0847967 100644 --- a/Assets/FlashTools/Docs/CHANGELOG.txt +++ b/Assets/FlashTools/Docs/CHANGELOG.txt @@ -1,101 +1,77 @@ -------------------- +-- Version 1.3.5 -- + +Fix sprite import problem + -- Version 1.3.4 -- -------------------- Fix CS6 export problem Fix unity postprocessor problems -------------------- -- Version 1.3.3 -- -------------------- Fix undefined unusedItems in CS6 -------------------- -- Version 1.3.2 -- -------------------- Fix bug custom scale export with small items optimization -------------------- -- Version 1.3.1 -- -------------------- Fix some Unity 5.5 deprecated functions -------------------- -- Version 1.3.0 -- -------------------- ETC separated alpha support Export animations with custom scale (for retina) New small vector scaled items optimization -------------------- -- Version 1.2.0 -- -------------------- Add Yield instructions for wait in coroutines(SwfWaitPlayStopped, SwfWaitRewindPlaying, SwfWaitStopPlaying) Add unscaled delta time support(for separate animations, groups of animations or for all) Fix guide type flash layers Some fixes for reconvert asset problem -------------------- -- Version 1.1.1 -- -------------------- Add conversion error by shape tween in CS6 Fix life after death (problem about destroying with big lag by frame event) -------------------- -- Version 1.1.0 -- -------------------- Sequence separator is anchor frame label (not common frame label) SwfClip access to frame labels (currentLabelCount, GetCurrentFrameLabel) SwfClip events (OnChangeClipEvent, OnChangeSequenceEvent, OnChangeCurrentFrameEvent) -------------------- -- Version 1.0.0 -- -------------------- Initial asset store version Sources to dll Palette bitmaps support -------------------- -- Version 0.5.0 -- -------------------- Flash optimizer twicks Blending modes (except Alpha and Erase) -------------------- -- Version 0.4.0 -- -------------------- Clip groups Fix move assets bug Tint color for clips Animation API improvements -------------------- -- Version 0.3.0 -- -------------------- Preview for animation assets and clips Animation API improvements Memory optimizations -------------------- -- Version 0.2.0 -- -------------------- Export optimizations Export clips with export names -------------------- -- Version 0.1.0 -- -------------------- Initial alpha version diff --git a/Assets/FlashTools/Scripts/Editor/FTEditor/Postprocessors/SwfAssetPostprocessor.cs b/Assets/FlashTools/Scripts/Editor/FTEditor/Postprocessors/SwfAssetPostprocessor.cs index 97e87ed..78c2c01 100644 --- a/Assets/FlashTools/Scripts/Editor/FTEditor/Postprocessors/SwfAssetPostprocessor.cs +++ b/Assets/FlashTools/Scripts/Editor/FTEditor/Postprocessors/SwfAssetPostprocessor.cs @@ -209,6 +209,7 @@ namespace FTEditor.Postprocessors { atlas_importer.textureFormat = SwfAtlasFormatToImporterFormat(asset.Settings.AtlasTextureFormat); #endif AssetDatabase.WriteImportSettingsIfDirty(atlas_path); + AssetDatabase.ImportAsset(atlas_path); } static TextureImporter GetBitmapsAtlasImporter(SwfAsset asset) { diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset index 794c061..5a96ca8 100644 --- a/ProjectSettings/GraphicsSettings.asset +++ b/ProjectSettings/GraphicsSettings.asset @@ -22,7 +22,7 @@ GraphicsSettings: - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} m_PreloadedShaders: [] m_ShaderSettings: - useScreenSpaceShadows: 0 + useScreenSpaceShadows: 1 m_BuildTargetShaderSettings: [] m_LightmapStripping: 0 m_FogStripping: 0