mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Only draw track connections when focused.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user