Prevent mesh from temporary disappearing in Unity Editor

This commit is contained in:
Yonsh 2013-06-26 14:49:02 +09:00
parent c6645706f9
commit 0b2a6bd2a5

View File

@ -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;