Skip to content

Commit a0cacef

Browse files
committed
Fixed Profiler hover tooltip
1 parent 7bbe9a3 commit a0cacef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MLAPI-Editor/MLAPIProfiler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ GUIStyle wrapStyle
2727
}
2828
float updateDelay = 1f;
2929
int captureCount = 100;
30-
TickEvent eventHover = null;
3130
float showMax = 0;
3231
float showMin = 0;
3332
bool record = false;
@@ -169,6 +168,7 @@ record = EditorGUILayout.Toggle("Record", record);
169168
}
170169

171170
//Draw main board
171+
TickEvent eventHover = null;
172172
int nonEmptyTicks = 0;
173173
int largestTickCount = 0;
174174
int totalTicks = ((int)showMax - (int)showMin);
@@ -214,7 +214,6 @@ record = EditorGUILayout.Toggle("Record", record);
214214
Rect dataRect = new Rect(currentX, currentY, widthPerTick, heightPerEvent);
215215

216216
if (dataRect.Contains(Event.current.mousePosition)) eventHover = tickEvent;
217-
else if (eventHover == tickEvent) eventHover = null;
218217

219218
if (j == tick.Events.Count - 1)
220219
dataRect.height -= 45f;

0 commit comments

Comments
 (0)