|
|
|
@ -204,12 +204,9 @@ namespace KSPTools
|
|
|
|
|
var target = (Transform) AnimationUtility.GetAnimatedObject(t.gameObject, b);
|
|
|
|
|
|
|
|
|
|
if (curve.length > 2) continue;
|
|
|
|
|
if (curve.length == 2 && !deleteList.Contains(target.gameObject))
|
|
|
|
|
if (curve.length == 2 && deleteList.Contains(target.gameObject))
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
//if (!Mathf.Approximately(curve[0].value, curve[1].value)) continue;
|
|
|
|
|
//if (!Mathf.Approximately(curve[0].value, 0.0f) && !Mathf.Approximately(curve[0].value, 1.0f)) continue;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AnimationUtility.SetEditorCurve(clip, b, null);
|
|
|
|
|