private void SaveChangedCurves()
{
CurveWrapper[] animationCurves = this.m_CurveEditor.animationCurves;
bool flag = false;
for (int i = 0; i < animationCurves.Length; i++)
{
CurveWrapper cw = animationCurves[i];
if (cw.changed)
{
for (int j = 0; j < this.m_AddedCurves.Count; j++)
{
if (this.m_AddedCurves[j].m_MaxId == cw.id)
{
this.SaveCurve(this.m_AddedCurves[j].m_Max, cw);
break;
}
if (this.m_AddedCurves[j].IsRegion() && (this.m_AddedCurves[j].m_MinId == cw.id))
{
this.SaveCurve(this.m_AddedCurves[j].m_Min, cw);
break;
}
}
flag = true;
}
}
if (flag)
{
AnimationCurvePreviewCache.ClearCache();
HandleUtility.Repaint();
}
}