void CreateInlineCurveEditor(WindowState state) { if (clipCurveEditor != null) { return; } var animationClip = clip.animationClip; if (animationClip != null && animationClip.empty) { animationClip = null; } // prune out clips coming from FBX if (animationClip != null && !clip.recordable) { return; // don't show, even if there are curves } if (animationClip == null && !clip.HasAnyAnimatableParameters()) { return; // nothing to show } state.AddEndFrameDelegate((istate, currentEvent) => { clipCurveEditor = new ClipCurveEditor(CurveDataSource.Create(this), TimelineWindow.instance, clip.GetParentTrack()); return(true); }); }
void UpdateInfiniteClipEditor(TimelineWindow window) { if (clipCurveEditor != null || track == null || !track.ShouldShowInfiniteClipEditor()) { return; } var dataSource = CurveDataSource.Create(this); clipCurveEditor = new ClipCurveEditor(dataSource, window, track); }