Merge pull request #79 from Yonsh/patch-2

Prevent mesh from temporary disappearing in Unity Editor
This commit is contained in:
Nathan Sweet 2013-06-26 03:10:12 -07:00
commit 9f54f48c0a

View File

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