mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Minor import code refactoring, shall not change anything.
This commit is contained in:
parent
f26b12821e
commit
4b4e96b788
@ -633,14 +633,14 @@ namespace Spine.Unity.Editor {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
vestigialMaterials.Remove(material);
|
vestigialMaterials.Remove(material);
|
||||||
}
|
|
||||||
|
|
||||||
if (material != null) {
|
|
||||||
if (texture != null)
|
if (texture != null)
|
||||||
material.mainTexture = texture;
|
material.mainTexture = texture;
|
||||||
EditorUtility.SetDirty(material);
|
EditorUtility.SetDirty(material);
|
||||||
// note: don't call AssetDatabase.SaveAssets() since this would trigger OnPostprocessAllAssets() every time unnecessarily.
|
// note: don't call AssetDatabase.SaveAssets() since this would trigger OnPostprocessAllAssets() every time unnecessarily.
|
||||||
populatingMaterials.Add(material); //atlasAsset.materials[i] = mat;
|
}
|
||||||
|
|
||||||
|
if (material != null) {
|
||||||
|
populatingMaterials.Add(material);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user