mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 21:29:07 +08:00
[untiy] Fixed a compile error when building executable (Texture2D.alphaIsTransparency exists only in editor).
This commit is contained in:
parent
b1c1dac17a
commit
19bbd5519f
@ -580,7 +580,9 @@ namespace Spine.Unity.AttachmentTools {
|
|||||||
static void CopyTextureAttributesFrom(this Texture2D destination, Texture2D source) {
|
static void CopyTextureAttributesFrom(this Texture2D destination, Texture2D source) {
|
||||||
destination.filterMode = source.filterMode;
|
destination.filterMode = source.filterMode;
|
||||||
destination.anisoLevel = source.anisoLevel;
|
destination.anisoLevel = source.anisoLevel;
|
||||||
|
#if UNITY_EDITOR
|
||||||
destination.alphaIsTransparency = source.alphaIsTransparency;
|
destination.alphaIsTransparency = source.alphaIsTransparency;
|
||||||
|
#endif
|
||||||
destination.wrapModeU = source.wrapModeU;
|
destination.wrapModeU = source.wrapModeU;
|
||||||
destination.wrapModeV = source.wrapModeV;
|
destination.wrapModeV = source.wrapModeV;
|
||||||
destination.wrapModeW = source.wrapModeW;
|
destination.wrapModeW = source.wrapModeW;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user