From 8f1ce76d8c49a3fa4b6d1cb6b44a4ce11fdfff15 Mon Sep 17 00:00:00 2001 From: robbiesri Date: Tue, 15 Aug 2017 13:22:47 -0700 Subject: [PATCH] Use non-deprecated EventTypes 2017.3 complains about some deprecated EventTypes used. The 'correct' versions have long been available, so safe to switch over. --- PostProcessing/Editor/Utils/CurveEditor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PostProcessing/Editor/Utils/CurveEditor.cs b/PostProcessing/Editor/Utils/CurveEditor.cs index c59cf2a2..fd4adaad 100644 --- a/PostProcessing/Editor/Utils/CurveEditor.cs +++ b/PostProcessing/Editor/Utils/CurveEditor.cs @@ -388,7 +388,7 @@ void OnCurveGUI(Rect rect, SerializedProperty curve, CurveState state) // Draw if (state.editable || state.showNonEditableHandles) { - if (e.type == EventType.repaint) + if (e.type == EventType.Repaint) { var selectedColor = (isCurrentlySelectedCurve && isCurrentlySelectedKeyframe) ? settings.selectionColor @@ -434,7 +434,7 @@ void OnCurveGUI(Rect rect, SerializedProperty curve, CurveState state) } // Keyframe selection & context menu - if (e.type == EventType.mouseDown && rect.Contains(e.mousePosition)) + if (e.type == EventType.MouseDown && rect.Contains(e.mousePosition)) { if (hitRect.Contains(e.mousePosition)) { @@ -465,7 +465,7 @@ void OnCurveGUI(Rect rect, SerializedProperty curve, CurveState state) } // Tangent selection & edit mode - if (e.type == EventType.mouseDown && rect.Contains(e.mousePosition)) + if (e.type == EventType.MouseDown && rect.Contains(e.mousePosition)) { if (inTangentHitRect.Contains(e.mousePosition) && (k > 0 || state.loopInBounds)) { @@ -511,7 +511,7 @@ void OnGeneralUI(Rect rect) var e = Event.current; // Selection - if (e.type == EventType.mouseDown) + if (e.type == EventType.MouseDown) { GUI.FocusControl(null); m_SelectedCurve = null; @@ -594,7 +594,7 @@ void OnGeneralUI(Rect rect) } // Delete selected key(s) - if (e.type == EventType.keyDown && (e.keyCode == KeyCode.Delete || e.keyCode == KeyCode.Backspace)) + if (e.type == EventType.KeyDown && (e.keyCode == KeyCode.Delete || e.keyCode == KeyCode.Backspace)) { if (m_SelectedKeyframeIndex != -1 && m_SelectedCurve != null) {