private void RenderSelectionOverlay(Rect rect) { if (!this.m_State.showCurveEditor || this.m_CurveEditor.hasSelection) { if (this.m_State.showCurveEditor || this.m_State.selectedKeys.Count != 0) { Bounds bounds = (!this.m_State.showCurveEditor) ? this.m_State.selectionBounds : this.m_CurveEditor.selectionBounds; float num = this.m_State.TimeToPixel(bounds.min.x) + rect.xMin; float num2 = this.m_State.TimeToPixel(bounds.max.x) + rect.xMin; if (num2 - num < 14f) { float num3 = (num + num2) * 0.5f; num = num3 - 7f; num2 = num3 + 7f; } AnimationWindowUtility.DrawRangeOfSelection(rect, num, num2); } } }