Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 604369b

Browse files
authored
Merge pull request #257 from Unity-Technologies/EventType-fix
Use non-deprecated EventTypes
2 parents 2767657 + 8f1ce76 commit 604369b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PostProcessing/Editor/Utils/CurveEditor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ void OnCurveGUI(Rect rect, SerializedProperty curve, CurveState state)
388388
// Draw
389389
if (state.editable || state.showNonEditableHandles)
390390
{
391-
if (e.type == EventType.repaint)
391+
if (e.type == EventType.Repaint)
392392
{
393393
var selectedColor = (isCurrentlySelectedCurve && isCurrentlySelectedKeyframe)
394394
? settings.selectionColor
@@ -434,7 +434,7 @@ void OnCurveGUI(Rect rect, SerializedProperty curve, CurveState state)
434434
}
435435

436436
// Keyframe selection & context menu
437-
if (e.type == EventType.mouseDown && rect.Contains(e.mousePosition))
437+
if (e.type == EventType.MouseDown && rect.Contains(e.mousePosition))
438438
{
439439
if (hitRect.Contains(e.mousePosition))
440440
{
@@ -465,7 +465,7 @@ void OnCurveGUI(Rect rect, SerializedProperty curve, CurveState state)
465465
}
466466

467467
// Tangent selection & edit mode
468-
if (e.type == EventType.mouseDown && rect.Contains(e.mousePosition))
468+
if (e.type == EventType.MouseDown && rect.Contains(e.mousePosition))
469469
{
470470
if (inTangentHitRect.Contains(e.mousePosition) && (k > 0 || state.loopInBounds))
471471
{
@@ -511,7 +511,7 @@ void OnGeneralUI(Rect rect)
511511
var e = Event.current;
512512

513513
// Selection
514-
if (e.type == EventType.mouseDown)
514+
if (e.type == EventType.MouseDown)
515515
{
516516
GUI.FocusControl(null);
517517
m_SelectedCurve = null;
@@ -594,7 +594,7 @@ void OnGeneralUI(Rect rect)
594594
}
595595

596596
// Delete selected key(s)
597-
if (e.type == EventType.keyDown && (e.keyCode == KeyCode.Delete || e.keyCode == KeyCode.Backspace))
597+
if (e.type == EventType.KeyDown && (e.keyCode == KeyCode.Delete || e.keyCode == KeyCode.Backspace))
598598
{
599599
if (m_SelectedKeyframeIndex != -1 && m_SelectedCurve != null)
600600
{

0 commit comments

Comments
 (0)