diff --git a/Editor/MeshPostProcessor.cs b/Editor/MeshPostProcessor.cs index dcb4bf7..f48bbd2 100644 --- a/Editor/MeshPostProcessor.cs +++ b/Editor/MeshPostProcessor.cs @@ -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);