[unity] Don't clear empty prefab MeshFilters.

This commit is contained in:
John 2017-08-24 17:47:49 +08:00 committed by GitHub
parent eca798931b
commit b39ff7863c

View File

@ -170,7 +170,7 @@ namespace Spine.Unity.Editor {
#if NO_PREFAB_MESH
if (isInspectingPrefab) {
MeshFilter meshFilter = component.GetComponent<MeshFilter>();
if (meshFilter != null)
if (meshFilter != null && meshFilter.sharedMesh != null)
meshFilter.sharedMesh = null;
}
#endif