mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
Merge pull request #79 from Yonsh/patch-2
Prevent mesh from temporary disappearing in Unity Editor
This commit is contained in:
commit
9f54f48c0a
@ -139,6 +139,9 @@ public class tk2dSpineSkeleton : MonoBehaviour, tk2dRuntime.ISpriteCollectionFor
|
||||
if (attachment is RegionAttachment) quadCount++;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (mesh.subMeshCount == submeshIndices.Count)
|
||||
#endif
|
||||
if (quadCount == cachedQuadCount) return;
|
||||
|
||||
cachedQuadCount = quadCount;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user