private void CheckIfAvatarCopyIsUpToDate() { if (this.animationType != ModelImporterAnimationType.Human && this.animationType != ModelImporterAnimationType.Generic || this.m_AvatarSource.objectReferenceValue == (UnityEngine.Object)null) { this.m_AvatarCopyIsUpToDate = true; } else { this.m_AvatarCopyIsUpToDate = ModelImporterRigEditor.DoesHumanDescriptionMatch(this.singleImporter, AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(this.m_AvatarSource.objectReferenceValue)) as ModelImporter); } }
private void CheckIfAvatarCopyIsUpToDate() { if ((this.animationType != ModelImporterAnimationType.Human && this.animationType != ModelImporterAnimationType.Generic) || this.m_AvatarSource.objectReferenceValue == null) { this.m_AvatarCopyIsUpToDate = true; return; } string assetPath = AssetDatabase.GetAssetPath(this.m_AvatarSource.objectReferenceValue); ModelImporter otherImporter = AssetImporter.GetAtPath(assetPath) as ModelImporter; this.m_AvatarCopyIsUpToDate = ModelImporterRigEditor.DoesHumanDescriptionMatch(this.singleImporter, otherImporter); }