Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions PostProcessing/Editor/Utils/CurveEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
{
Expand Down Expand Up @@ -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))
{
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down