mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '3.8' into 3.9-beta
This commit is contained in:
commit
d8af0d3d24
@ -594,7 +594,7 @@ namespace Spine.Unity.Editor {
|
|||||||
static bool SetReferenceTextureSettings (string texturePath, SpineAtlasAsset atlasAsset, string referenceAssetPath) {
|
static bool SetReferenceTextureSettings (string texturePath, SpineAtlasAsset atlasAsset, string referenceAssetPath) {
|
||||||
TextureImporter reference = TextureImporter.GetAtPath(referenceAssetPath) as TextureImporter;
|
TextureImporter reference = TextureImporter.GetAtPath(referenceAssetPath) as TextureImporter;
|
||||||
if (reference == null)
|
if (reference == null)
|
||||||
SetDefaultTextureSettings(texturePath, atlasAsset);
|
return SetDefaultTextureSettings(texturePath, atlasAsset);
|
||||||
|
|
||||||
TextureImporter texImporter = (TextureImporter)TextureImporter.GetAtPath(texturePath);
|
TextureImporter texImporter = (TextureImporter)TextureImporter.GetAtPath(texturePath);
|
||||||
if (texImporter == null) {
|
if (texImporter == null) {
|
||||||
@ -612,6 +612,7 @@ namespace Spine.Unity.Editor {
|
|||||||
texImporter.isReadable = reference.isReadable;
|
texImporter.isReadable = reference.isReadable;
|
||||||
texImporter.filterMode = reference.filterMode;
|
texImporter.filterMode = reference.filterMode;
|
||||||
texImporter.mipmapFilter = reference.mipmapFilter;
|
texImporter.mipmapFilter = reference.mipmapFilter;
|
||||||
|
texImporter.textureType = reference.textureType;
|
||||||
|
|
||||||
EditorUtility.SetDirty(texImporter);
|
EditorUtility.SetDirty(texImporter);
|
||||||
AssetDatabase.ImportAsset(texturePath);
|
AssetDatabase.ImportAsset(texturePath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user