Only draw track connections when focused.

This commit is contained in:
Leonardo Zide
2024-11-29 18:45:27 -08:00
parent 7fd23dab4f
commit 41097f8489
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ std::optional<lcMatrix44> lcTrainTrackInfo::GetPieceInsertTransform(lcPiece* Cur
if (FocusSection == LC_PIECE_SECTION_POSITION || FocusSection == LC_PIECE_SECTION_INVALID)
{
for (ConnectionIndex = 0; ConnectionIndex < CurrentTrackInfo->GetConnections().size(); ConnectionIndex++)
if (CurrentPiece->IsTrainTrackConnectionVisible(ConnectionIndex))
if (!CurrentPiece->IsTrainTrackConnected(ConnectionIndex))
break;
}
else