force fullrect for sprites

This commit is contained in:
2017-06-19 20:14:40 +07:00
parent 4471d05910
commit 5f3302b459
3 changed files with 9 additions and 2 deletions

View File

@@ -211,6 +211,12 @@ namespace FTEditor.Postprocessors {
#else
atlas_importer.textureFormat = SwfAtlasFormatToImporterFormat(asset.Settings.AtlasTextureFormat);
#endif
var atlas_settings = new TextureImporterSettings();
atlas_importer.ReadTextureSettings(atlas_settings);
atlas_settings.spriteMeshType = SpriteMeshType.FullRect;
atlas_importer.SetTextureSettings(atlas_settings);
atlas_importer.SaveAndReimport();
}