private void SetupReferencedClip(string otherModelImporterPath)
{
SerializedObject serializedObject = ModelImporterRigEditor.GetModelImporterSerializedObject(otherModelImporterPath);
if (serializedObject == null)
{
return;
}
serializedObject.CopyFromSerializedProperty(this.serializedObject.FindProperty("m_AnimationType"));
SerializedProperty property1 = serializedObject.FindProperty("m_CopyAvatar");
if (property1 != null)
{
property1.boolValue = true;
}
SerializedProperty property2 = serializedObject.FindProperty("m_LastHumanDescriptionAvatarSource");
if (property2 != null)
{
property2.objectReferenceValue = (UnityEngine.Object) this.m_Avatar;
}
ModelImporterRigEditor.CopyHumanDescriptionToDestination(this.serializedObject, serializedObject);
serializedObject.ApplyModifiedProperties();
serializedObject.Dispose();
}