From 07be2fe7b5d889f1700e90c0693a331c37ba8d0a Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Mon, 2 Nov 2020 23:58:07 -0800 Subject: [PATCH] Add folder-specific readmes --- Editor/MeshPostProcessor.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);