private void ShowUpdateReferenceClip()
{
if (((base.targets.Length <= 1) && (this.animationType == ModelImporterAnimationType.Human)) && !this.m_CopyAvatar.boolValue)
{
string[] array = new string[0];
ModelImporter target = this.target as ModelImporter;
if (target.referencedClips.Length > 0)
{
foreach (string str in target.referencedClips)
{
ArrayUtility.Add<string>(ref array, AssetDatabase.GUIDToAssetPath(str));
}
}
if (array.Length > 0)
{
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width(150f) };
if (GUILayout.Button(styles.UpdateReferenceClips, options))
{
foreach (string str2 in array)
{
this.SetupReferencedClip(str2);
}
try
{
AssetDatabase.StartAssetEditing();
foreach (string str3 in array)
{
AssetDatabase.ImportAsset(str3);
}
}
finally
{
AssetDatabase.StopAssetEditing();
}
}
}
}
}