[unity] Don't clear empty prefab MeshFilters.

This commit is contained in:
John 2017-08-25 11:53:02 +08:00 committed by GitHub
parent b39ff7863c
commit d082bfe2d0

View File

@ -211,7 +211,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