public override void OnInspectorGUI()
{
if (styles == null)
{
styles = new Styles();
}
EditorGUILayout.PropertyField(this.m_ImportAnimation, styles.ImportAnimations, new GUILayoutOption[0]);
if (this.m_ImportAnimation.boolValue && !this.m_ImportAnimation.hasMultipleDifferentValues)
{
bool flag = (base.targets.Length == 1) && (this.singleImporter.importedTakeInfos.Length == 0);
if (this.IsDeprecatedMultiAnimationRootImport())
{
EditorGUILayout.HelpBox("Animation data was imported using a deprecated Generation option in the Rig tab. Please switch to a non-deprecated import mode in the Rig tab to be able to edit the animation import settings.", MessageType.Info);
}
else if (flag)
{
if (base.serializedObject.hasModifiedProperties)
{
EditorGUILayout.HelpBox("The animations settings can be edited after clicking Apply.", MessageType.Info);
}
else
{
EditorGUILayout.HelpBox("No animation data available in this model.", MessageType.Info);
}
}
else if (this.m_AnimationType.hasMultipleDifferentValues)
{
EditorGUILayout.HelpBox("The rigs of the selected models have different animation types.", MessageType.Info);
}
else if (this.animationType == ModelImporterAnimationType.None)
{
EditorGUILayout.HelpBox("The rigs is not setup to handle animation. Edit the settings in the Rig tab.", MessageType.Info);
}
else if (this.m_ImportAnimation.boolValue && !this.m_ImportAnimation.hasMultipleDifferentValues)
{
this.AnimationClipGUI();
}
}
base.ApplyRevertGUI();
}