private void AnimationSettings()
{
EditorGUILayout.Space();
bool flag = true;
foreach (ModelImporter importer in base.targets)
{
if (!importer.isBakeIKSupported)
{
flag = false;
}
}
EditorGUI.BeginDisabledGroup(!flag);
EditorGUILayout.PropertyField(this.m_BakeSimulation, styles.BakeIK, new GUILayoutOption[0]);
EditorGUI.EndDisabledGroup();
if (this.animationType == ModelImporterAnimationType.Legacy)
{
EditorGUI.showMixedValue = this.m_AnimationWrapMode.hasMultipleDifferentValues;
EditorGUILayout.Popup(this.m_AnimationWrapMode, styles.AnimWrapModeOpt, styles.AnimWrapModeLabel, new GUILayoutOption[0]);
EditorGUI.showMixedValue = false;
int[] numArray1 = new int[3];
numArray1[1] = 1;
numArray1[2] = 2;
int[] optionValues = numArray1;
EditorGUILayout.IntPopup(this.m_AnimationCompression, styles.AnimCompressionOptLegacy, optionValues, styles.AnimCompressionLabel, new GUILayoutOption[0]);
}
else
{
int[] numArray3 = new int[3];
numArray3[1] = 1;
numArray3[2] = 3;
int[] numArray2 = numArray3;
EditorGUILayout.IntPopup(this.m_AnimationCompression, styles.AnimCompressionOpt, numArray2, styles.AnimCompressionLabel, new GUILayoutOption[0]);
}
if (this.m_AnimationCompression.intValue > 0)
{
EditorGUILayout.PropertyField(this.m_AnimationRotationError, styles.AnimRotationErrorLabel, new GUILayoutOption[0]);
EditorGUILayout.PropertyField(this.m_AnimationPositionError, styles.AnimPositionErrorLabel, new GUILayoutOption[0]);
EditorGUILayout.PropertyField(this.m_AnimationScaleError, styles.AnimScaleErrorLabel, new GUILayoutOption[0]);
GUILayout.Label(styles.AnimationCompressionHelp, EditorStyles.helpBox, new GUILayoutOption[0]);
}
}