Skip to content

Commit

Permalink
Merge branch '4.21'
Browse files Browse the repository at this point in the history
  • Loading branch information
goncasmage1 committed Jan 29, 2019
2 parents 2827f58 + d4c8208 commit 78325e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified Content/UINavDocs.uasset
Binary file not shown.
4 changes: 4 additions & 0 deletions Source/UINavigation/Private/UINavWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ void UUINavWidget::FetchButtonsInHierarchy()
!UINavButtons[ButtonIndex]->bIsEnabled)
{
ButtonIndex++;
if (ButtonIndex >= UINavButtons.Num()) ButtonIndex = 0;
if (ButtonIndex == FirstButtonIndex) break;
}
}

Expand Down Expand Up @@ -994,6 +996,8 @@ int UUINavWidget::FindNextIndex(ENavigationDirection Direction)
!UINavButtons[NewIndex]->bIsEnabled)
{
NewIndex = FetchIndexByDirection(Direction, NewIndex);
if (NewIndex >= UINavButtons.Num()) NewIndex = 0;
if (NewIndex == ButtonIndex) return -1;
}
return NewIndex;
}
Expand Down

0 comments on commit 78325e1

Please sign in to comment.