Skip to content

Commit

Permalink
Do not force redraw when selection is unsupported.
Browse files Browse the repository at this point in the history
  • Loading branch information
WhistleWiz committed Sep 4, 2023
1 parent 5c60768 commit 3783d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MapifyEditor/Tools/TrackToolsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ private void OnInspectorUpdate()
{
_updateCounter = (_updateCounter + 1) % 10;

if (!_performanceMode || _updateCounter % 10 == 0)
if ((!_performanceMode || _updateCounter % 10 == 0) &&
_selectionType != SelectionType.None)
{
RemakeAndRepaint();
}
Expand Down

0 comments on commit 3783d06

Please sign in to comment.