mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 10:16:01 +08:00
Prevent mesh from temporary disappearing in Unity Editor
This commit is contained in:
parent
c6645706f9
commit
0b2a6bd2a5
@ -139,6 +139,9 @@ public class tk2dSpineSkeleton : MonoBehaviour, tk2dRuntime.ISpriteCollectionFor
|
|||||||
if (attachment is RegionAttachment) quadCount++;
|
if (attachment is RegionAttachment) quadCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (mesh.subMeshCount == submeshIndices.Count)
|
||||||
|
#endif
|
||||||
if (quadCount == cachedQuadCount) return;
|
if (quadCount == cachedQuadCount) return;
|
||||||
|
|
||||||
cachedQuadCount = quadCount;
|
cachedQuadCount = quadCount;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user