public void OnEnable()
{
this.m_ClipAnimations = base.serializedObject.FindProperty("m_ClipAnimations");
this.m_AnimationType = base.serializedObject.FindProperty("m_AnimationType");
this.m_LegacyGenerateAnimations = base.serializedObject.FindProperty("m_LegacyGenerateAnimations");
this.m_ImportAnimation = base.serializedObject.FindProperty("m_ImportAnimation");
this.m_BakeSimulation = base.serializedObject.FindProperty("m_BakeSimulation");
this.m_AnimationCompression = base.serializedObject.FindProperty("m_AnimationCompression");
this.m_AnimationRotationError = base.serializedObject.FindProperty("m_AnimationRotationError");
this.m_AnimationPositionError = base.serializedObject.FindProperty("m_AnimationPositionError");
this.m_AnimationScaleError = base.serializedObject.FindProperty("m_AnimationScaleError");
this.m_AnimationWrapMode = base.serializedObject.FindProperty("m_AnimationWrapMode");
if (this.m_ClipAnimations.arraySize == 0)
{
this.SetupDefaultClips();
}
this.selectedClipIndex = EditorPrefs.GetInt("ModelImporterClipEditor.ActiveClipIndex", 0);
this.ValidateClipSelectionIndex();
EditorPrefs.SetInt("ModelImporterClipEditor.ActiveClipIndex", this.selectedClipIndex);
if ((this.m_AnimationClipEditor != null) && (this.selectedClipIndex >= 0))
{
this.SyncClipEditor();
}
if (this.m_ClipAnimations.arraySize != 0)
{
this.SelectClip(this.selectedClipIndex);
}
string[] transformPaths = this.singleImporter.transformPaths;
this.m_MotionNodeList = new GUIContent[transformPaths.Length + 1];
this.m_MotionNodeList[0] = new GUIContent("<None>");
for (int i = 0; i < transformPaths.Length; i++)
{
if (i == 0)
{
this.m_MotionNodeList[1] = new GUIContent("<Root Transform>");
}
else
{
this.m_MotionNodeList[i + 1] = new GUIContent(transformPaths[i]);
}
}
this.m_MotionNodeName = base.serializedObject.FindProperty("m_MotionNodeName");
this.motionNodeIndex = ArrayUtility.FindIndex<GUIContent>(this.m_MotionNodeList, content => content.text == this.m_MotionNodeName.stringValue);
this.motionNodeIndex = (this.motionNodeIndex >= 1) ? this.motionNodeIndex : 0;
this.m_AnimationImportErrors = base.serializedObject.FindProperty("m_AnimationImportErrors");
this.m_AnimationImportWarnings = base.serializedObject.FindProperty("m_AnimationImportWarnings");
this.m_AnimationRetargetingWarnings = base.serializedObject.FindProperty("m_AnimationRetargetingWarnings");
this.m_AnimationDoRetargetingWarnings = base.serializedObject.FindProperty("m_AnimationDoRetargetingWarnings");
}